updated leader binds

This commit is contained in:
Aadi Rave 2025-03-16 21:04:49 -04:00
parent f4f9818d18
commit 050f1b9259
1 changed files with 3 additions and 3 deletions

View File

@ -223,6 +223,9 @@ on_attach =
local map = vim.api.nvim_set_keymap local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
-- open explorer
map('n', '<leader>E', ':NvimTreeOpen<CR>', { desc = '[E]xplorer', silent = true, noremap = true })
-- Move to previous/next -- Move to previous/next
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts) map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts) map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
@ -605,9 +608,6 @@ require('lazy').setup({
-- or a suggestion from your LSP for this to activate. -- or a suggestion from your LSP for this to activate.
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' }) map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
-- open explorer
map('<leader>E', ':NvimTreeOpen<CR>', '[E]xplorer')
-- WARN: This is not Goto Definition, this is Goto Declaration. -- WARN: This is not Goto Definition, this is Goto Declaration.
-- For example, in C this would take you to the header. -- For example, in C this would take you to the header.
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')