diff --git a/nvim/lua/plugins/nvim-tree.lua b/nvim/lua/plugins/nvim-tree.lua index 027cf34..1fd5465 100755 --- a/nvim/lua/plugins/nvim-tree.lua +++ b/nvim/lua/plugins/nvim-tree.lua @@ -13,10 +13,12 @@ return { sort = { folders_first = true, sorter = "name" - } + }, + filters = { custom = { "^.git$" } } } - vim.keymap.set('n', 'e', ":NvimTreeToggle", {silent = true}) - vim.keymap.set('n', 'e', ":NvimTreeFindFile", {silent = true}) + vim.keymap.set('n', 'e', ":NvimTreeToggle", {silent = true, desc = "Open nvim-tree"}) + vim.keymap.set('n', 'h', ":NvimTreeCollapseKeepBuffers", { silent = true, desc = "Collapse nvim-tree keeping open buffers" }) + vim.keymap.set('n', 'e', ":NvimTreeFindFile", {silent = true, desc = "Go to currently open file in buffer or close"}) end, }