init: public
This commit is contained in:
21
modules/coding/editor/neovim/nvim/lua/plugins/nvim-tree.lua
Normal file
21
modules/coding/editor/neovim/nvim/lua/plugins/nvim-tree.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
M = {
|
||||
sync_root_with_cwd = true,
|
||||
diagnostics = {
|
||||
enable = false,
|
||||
debounce_delay = 50,
|
||||
show_on_dirs = true
|
||||
},
|
||||
filters = {
|
||||
git_ignored = false
|
||||
}
|
||||
}
|
||||
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
local opt = require("core.globals").keymap_opt
|
||||
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", opt)
|
||||
vim.keymap.set("n", "<leader>te", ":NvimTreeFocus<CR>", opt)
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user