nvim: Add gd keyboard shortcut
This commit is contained in:
parent
c8a8f61a9f
commit
2dbc45f106
@ -54,6 +54,11 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
function() vim.lsp.buf.format({ bufnr = args.buf, timeout_ms = 1000 }) end,
|
||||
{ desc = "Format" })
|
||||
|
||||
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, {
|
||||
desc = "Go to definition"
|
||||
})
|
||||
|
||||
|
||||
-- if client:supports_method('textDocument/implementation') then
|
||||
-- -- Create a keymap for vim.lsp.buf.implementation ...
|
||||
-- end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user