Add nvimtree configuration
This commit is contained in:
parent
09e109164a
commit
8d9d84eb7f
2 changed files with 14 additions and 1 deletions
|
@ -61,7 +61,7 @@ require('packer').startup(function()
|
||||||
use {
|
use {
|
||||||
'kyazdani42/nvim-tree.lua',
|
'kyazdani42/nvim-tree.lua',
|
||||||
requires = 'kyazdani42/nvim-web-devicons',
|
requires = 'kyazdani42/nvim-web-devicons',
|
||||||
config = function() require('nvim-tree').setup {} end
|
config = require('plugins.nvim-tree')
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
|
|
13
home/.config/nvim/lua/plugins/nvim-tree.lua
Normal file
13
home/.config/nvim/lua/plugins/nvim-tree.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
return function()
|
||||||
|
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS
|
||||||
|
diagnostics = {
|
||||||
|
enable = true,
|
||||||
|
show_on_dirs = true,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
highlight_git = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-- Open/close with alt-o
|
||||||
|
vim.keymap.set('n', '<M-o>', vim.cmd.NvimTreeToggle)
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue