begin nvim config cleanup
This commit is contained in:
parent
d2d85c8cff
commit
4ecc5566b4
37 changed files with 326 additions and 476 deletions
26
.config/nvim/lua/plugins/tree.lua
Normal file
26
.config/nvim/lua/plugins/tree.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
require("nvim-tree").setup({
|
||||
update_focused_file = {
|
||||
enable = true,
|
||||
update_root = false,
|
||||
ignore_list = { "help" },
|
||||
},
|
||||
filters = {
|
||||
custom = { '.git' },
|
||||
},
|
||||
actions = {
|
||||
open_file = {
|
||||
quit_on_open = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', 'Ā', ':NvimTreeToggle<CR>', { silent = true })
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue