added marksman and gd shortcut

This commit is contained in:
Joost Agterhoek 2025-07-09 14:04:50 +02:00
parent d0c0452376
commit 42b30ab408

View File

@ -72,6 +72,8 @@ return {
vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = "LSP: " .. desc }) vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
end end
map("gd", require('telescope.builtin').lsp_definitions, '[G]oto [D]definition')
-- Rename the variable under your cursor. -- Rename the variable under your cursor.
-- Most Language Servers support renaming across files, etc. -- Most Language Servers support renaming across files, etc.
map("grn", vim.lsp.buf.rename, "[R]e[n]ame") map("grn", vim.lsp.buf.rename, "[R]e[n]ame")
@ -222,6 +224,7 @@ return {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
pyright = {}, pyright = {},
marksman = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --