1
0

Use native diagnostic virtual lines

This commit is contained in:
2025-04-06 13:10:47 +01:00
parent a773c09950
commit 9702f7a697
2 changed files with 7 additions and 14 deletions

View File

@@ -75,18 +75,19 @@ vim.keymap.set("n", "<leader>Y", "\"+Y")
-- Diagnostics -- Diagnostics
-- --
-- Disable built-in -- Summary diagnostics at end of line for every error
-- vim.diagnostic.config({ virtual_text = false } )
-- End of line diagnostic for every error
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = { virtual_text = {
virt_text_win_vol = 3, virt_text_win_vol = 3,
}, },
}) })
-- Enable all errors for the current line only -- All diagnostics for the current line only
vim.diagnostic.config({ virtual_lines = { only_current_line = true } }) vim.diagnostic.config({
virtual_lines = {
current_line = true
}
})
vim.keymap.set("n", "]g", vim.diagnostic.goto_next) vim.keymap.set("n", "]g", vim.diagnostic.goto_next)
vim.keymap.set("n", "[g", vim.diagnostic.goto_prev) vim.keymap.set("n", "[g", vim.diagnostic.goto_prev)

View File

@@ -1,8 +0,0 @@
return {
{
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
config = function()
require("lsp_lines").setup()
end,
}
}