Skip to content

Commit 050f1b9

Browse files
committed
updated leader binds
1 parent f4f9818 commit 050f1b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ on_attach =
223223
local map = vim.api.nvim_set_keymap
224224
local opts = { noremap = true, silent = true }
225225

226+
-- open explorer
227+
map('n', '<leader>E', ':NvimTreeOpen<CR>', { desc = '[E]xplorer', silent = true, noremap = true })
228+
226229
-- Move to previous/next
227230
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
228231
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
@@ -605,9 +608,6 @@ require('lazy').setup({
605608
-- or a suggestion from your LSP for this to activate.
606609
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
607610

608-
-- open explorer
609-
map('<leader>E', ':NvimTreeOpen<CR>', '[E]xplorer')
610-
611611
-- WARN: This is not Goto Definition, this is Goto Declaration.
612612
-- For example, in C this would take you to the header.
613613
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')

0 commit comments

Comments
 (0)