nvim: use telescope for go to definition

This commit is contained in:
Primrose 2025-07-04 10:58:36 +02:00
parent e4fa75f0c3
commit 79ccdb1263
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 2 additions and 1 deletions

View file

@ -82,7 +82,7 @@ local on_attach = function(client, bufnr)
map("n", "K", vim.lsp.buf.hover, { buffer = bufnr })
map("n", "<C-k>", vim.lsp.buf.signature_help, { buffer = bufnr })
map("n", "gd", vim.lsp.buf.definition, { buffer = bufnr })
map("n", "gd", telescope.lsp_definitions, { buffer = bufnr })
-- conflicts with tabs
-- map("n", "gtd", vim.lsp.buf.type_definition, { buffer = bufnr })
-- map("n", "gi", vim.lsp.buf.implementation, { buffer = bufnr })