add nvim-tree
This commit is contained in:
25
lua/config/nvim-tree.lua
Normal file
25
lua/config/nvim-tree.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
require("nvim-tree").setup({
|
||||
|
||||
git = {
|
||||
enable = true,
|
||||
},
|
||||
renderer = {
|
||||
highlight_git = true,
|
||||
icons = {
|
||||
show = {
|
||||
git = true,
|
||||
},
|
||||
glyphs = {
|
||||
folder = {
|
||||
default = "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
local opts = {
|
||||
noremap = true, -- non-recursive
|
||||
silent = true, -- do not show message
|
||||
}
|
||||
|
||||
vim.keymap.set('n', "<leader>e", function () require("nvim-tree.api").tree.toggle() end, opts)
|
||||
Reference in New Issue
Block a user