use telescope for go to references

This commit is contained in:
Alexander Gehrke 2024-09-13 17:14:12 +02:00
parent 2c5d7faba6
commit 473d78494e
2 changed files with 14 additions and 15 deletions

View file

@ -20,10 +20,10 @@ local on_attach = function(args)
{ '<Leader>rn', vim.lsp.buf.rename, "Rename" },
{ '<M-x>', vim.lsp.buf.code_action, "Code action" },
{ '<M-s>', vim.lsp.codelens.run, "Run code lens" },
{ 'gr', vim.lsp.buf.references, "Go to references" },
{ 'gr', function() require('telescope.builtin').lsp_references() end,"Go to references" },
{ '<M-e>', vim.diagnostic.open_float, "Open diagnostics" },
{ '[d', vim.diagnostic.goto_prev, "Go to previous diagnostic" },
{ '[d', vim.diagnostic.goto_prev, "Go to next diagnostic" },
{ ']d', vim.diagnostic.goto_next, "Go to next diagnostic" },
{ '<M-q>', vim.diagnostic.setloclist, "Add buffer diagnostics to location list" },
{ "<leader>dc", function() require("dap").continue() end, "Debug: Continue" },
{ "<leader>dK", function() require("dap.ui.widgets").hover() end, "Debug: Hover" },