From 050f1b925925747041ab0f2c99042b2b35f0ee69 Mon Sep 17 00:00:00 2001 From: Aadi Rave Date: Sun, 16 Mar 2025 21:04:49 -0400 Subject: [PATCH] updated leader binds --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 3a96151c..aa808e44 100644 --- a/init.lua +++ b/init.lua @@ -223,6 +223,9 @@ on_attach = local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } +-- open explorer +map('n', 'E', ':NvimTreeOpen', { desc = '[E]xplorer', silent = true, noremap = true }) + -- Move to previous/next map('n', '', 'BufferPrevious', opts) map('n', '', 'BufferNext', opts) @@ -605,9 +608,6 @@ require('lazy').setup({ -- or a suggestion from your LSP for this to activate. map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' }) - -- open explorer - map('E', ':NvimTreeOpen', '[E]xplorer') - -- WARN: This is not Goto Definition, this is Goto Declaration. -- For example, in C this would take you to the header. map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')