chore: make neovim gd actually go to definition
For some reason, the default mapping on `gd` does not go to definition by lsp, but rather by symbol within file.
This commit is contained in:
@@ -53,6 +53,9 @@ local keymap = {
|
|||||||
goto_last_buffer = {
|
goto_last_buffer = {
|
||||||
['<leader>l'] = ':e#<CR>',
|
['<leader>l'] = ':e#<CR>',
|
||||||
},
|
},
|
||||||
|
goto_definition = {
|
||||||
|
['gd'] = vim.lsp.buf.declaration
|
||||||
|
},
|
||||||
scratch_pad = {
|
scratch_pad = {
|
||||||
['<leader>s'] = table.concat({
|
['<leader>s'] = table.concat({
|
||||||
':bo vs',
|
':bo vs',
|
||||||
|
|||||||
Reference in New Issue
Block a user