Add nvimtree configuration

This commit is contained in:
Marko Korhonen 2022-08-24 12:07:21 +03:00
parent 09e109164a
commit 8d9d84eb7f
2 changed files with 14 additions and 1 deletions

View file

@ -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

View 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