updated leader binds
This commit is contained in:
parent
f4f9818d18
commit
050f1b9259
6
init.lua
6
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', '<leader>E', ':NvimTreeOpen<CR>', { desc = '[E]xplorer', silent = true, noremap = true })
|
||||
|
||||
-- Move to previous/next
|
||||
map('n', '<A-,>', '<Cmd>BufferPrevious<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.
|
||||
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.
|
||||
-- For example, in C this would take you to the header.
|
||||
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
|
|
Loading…
Reference in New Issue