From dba36e227c8924c15703a977224399342af3979b Mon Sep 17 00:00:00 2001 From: mace Date: Fri, 25 Jul 2025 16:20:25 +0200 Subject: [PATCH] go to definition --- lua/custom/lspconfig.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index e5d9e26..71ca12c 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -40,7 +40,8 @@ local on_attach = function(_, bufnr) keymap.set("n", "g0", "lua vim.lsp.buf.document_symbol()", opts) -- keymap.set("n", "gr", "lua vim.lsp.buf.references()", opts) keymap.set("n", "gD", "lua vim.lsp.buf.declaration()", opts) -- got to declaration - keymap.set("n", "gd", "lua vim.lsp.buf.definition()", opts) -- see definition and make edits in window + -- keymap.set("n", "gd", "lua vim.lsp.buf.definition()", opts) -- see definition and make edits in window + keymap.set("n", "gd", "Telescope lsp_definitions", opts) -- see definition and make edits in window keymap.set("n", "gi", "lua vim.lsp.buf.implementation()", opts) -- go to implementation -- keymap.set("n", "l", "lua vim.lsp.buf.format()", opts) -- format code keymap.set("n", "l", smart_format, opts) -- format code