(nvim) use telescope for references
This commit is contained in:
parent
4cf00434c2
commit
8eda6edb27
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ return {
|
|||
-- Use built-in LSP for definitions (replaces deprecated Telescope function)
|
||||
map("gd", vim.lsp.buf.definition, "[G]oto [D]efinition")
|
||||
|
||||
-- Use built-in LSP for references (replaces deprecated Telescope function)
|
||||
map("gr", vim.lsp.buf.references, "[G]oto [R]eferences")
|
||||
-- Use Telescope for references (auto-closes on selection)
|
||||
map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
||||
|
||||
-- Use built-in LSP for implementation (replaces deprecated Telescope function)
|
||||
map("gI", vim.lsp.buf.implementation, "[G]oto [I]mplementation")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue