1
0
mirror of https://github.com/sameer1612/.dotfiles.git synced 2024-11-27 08:20:51 +02:00

fixed nvim tree mappings

This commit is contained in:
Sameer Kumar 2024-10-16 12:23:41 +05:30
parent 30022770c1
commit a53dc390ab

View File

@ -63,10 +63,12 @@ map("n", "<leader>lf", "<cmd>Lspsaga finder<CR>", opts)
map("n", "<leader>le", "<cmd>Lspsaga diagnostic_jump_next<CR>", opts)
-- nvim-tree mappings
map("n", "<leader>ee", "<cmd>NvimTreeFindFileToggle<CR>", { desc = "Toggle file explorer on current file" })
map("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>", { desc = "Collapse file explorer" })
map("n", "<leader>ee", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" })
map("n", "<leader>ef", "<cmd>NvimTreeFocus<CR>", { desc = "Focus in file explorer" })
map("n", "<leader>ec", "<cmd>NvimTreeClose<CR>", { desc = "Collapse file explorer" })
map("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>", { desc = "Refresh file explorer" })
-- remove default mappings
nomap("n", "<leader>n")
nomap("n", "<leader>e")
nomap("n", "<leader>b")