feat(lsp): custom codelens as virtual text

This commit is contained in:
2026-04-15 20:51:56 +02:00
parent 08c4431b4b
commit 9c6130d3d2
3 changed files with 288 additions and 0 deletions
+3
View File
@@ -161,6 +161,9 @@ vim.keymap.set({ "i", "s" }, "<C-s>", function()
end)
vim.keymap.set({ "n", "i" }, "<C-h>", vim.lsp.buf.document_highlight)
vim.keymap.set({ "n", "x" }, "<leader>lf", vim.lsp.buf.format)
vim.keymap.set("n", "grl", function()
require("lsp.codelens").toggle()
end)
vim.keymap.set("n", "<leader>ld", function()
vim.diagnostic.enable(
not vim.diagnostic.is_enabled({ bufnr = 0 }),