nvim: Add gd keyboard shortcut

This commit is contained in:
Andreas Tsouchlos 2025-07-25 10:16:44 -04:00
parent c8a8f61a9f
commit 2dbc45f106

View File

@ -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