nvim: Add lsp references preview window

Add 'glances.nvim' plugin which shows the LSP references, definitions and
implementations in a very nice floating preview window. (Previously we
used Telescope which is still called if the glances plugin does not
exist.)

Can preview, scroll in the floating window, go to the destination, open
the destination in vert/horiz splits.
This commit is contained in:
Marty Oehme 2024-03-01 10:36:16 +01:00
parent fcaaba9e8d
commit b0aabf719a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 15 additions and 7 deletions

View file

@ -66,11 +66,13 @@ return {
config = function()
require("plugins.config.lsp")
end,
keys = { {
"<leader>vs",
":LspInfo<cr>",
desc = "LspInfo",
} },
keys = { { "<leader>vs", ":LspInfo<cr>", desc = "LspInfo" } },
},
-- very very pretty lsp 'peek' menus
{
"DNLHC/glance.nvim",
opts = { border = { enable = true }, theme = { enable = true, mode = "auto" } },
cmd = { "Glance" },
},
-- linting setup