Add nvimtree configuration
This commit is contained in:
parent
21284ab10d
commit
c707c17f4b
2 changed files with 14 additions and 1 deletions
|
@ -61,7 +61,7 @@ require('packer').startup(function()
|
|||
use {
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = 'kyazdani42/nvim-web-devicons',
|
||||
config = function() require('nvim-tree').setup {} end
|
||||
config = require('plugins.nvim-tree')
|
||||
}
|
||||
|
||||
-- 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