mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: use telescope for go to definition
This commit is contained in:
parent
e4fa75f0c3
commit
79ccdb1263
2 changed files with 2 additions and 1 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ telescope.setup {
|
|||
},
|
||||
lsp_references = {
|
||||
layout_config = { height = 0.8 },
|
||||
initial_mode = "normal",
|
||||
},
|
||||
live_grep = {
|
||||
layout_config = { height = 0.8 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue