Add new nvim-tree keybinds
This commit is contained in:
parent
4508f579b5
commit
59820ad2ba
@ -13,10 +13,12 @@ return {
|
|||||||
sort = {
|
sort = {
|
||||||
folders_first = true,
|
folders_first = true,
|
||||||
sorter = "name"
|
sorter = "name"
|
||||||
}
|
},
|
||||||
|
filters = { custom = { "^.git$" } }
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>e', ":NvimTreeToggle<CR>", {silent = true})
|
vim.keymap.set('n', '<leader>e', ":NvimTreeToggle<CR>", {silent = true, desc = "Open nvim-tree"})
|
||||||
vim.keymap.set('n', '<leader><leader>e', ":NvimTreeFindFile<CR>", {silent = true})
|
vim.keymap.set('n', '<leader><leader>h', ":NvimTreeCollapseKeepBuffers<CR>", { silent = true, desc = "Collapse nvim-tree keeping open buffers" })
|
||||||
|
vim.keymap.set('n', '<leader><leader>e', ":NvimTreeFindFile<CR>", {silent = true, desc = "Go to currently open file in buffer or close"})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user