1
0

tidy diagnostics setup

This commit is contained in:
2025-08-23 16:10:30 +01:00
parent 6c5ae5fae0
commit f93b08170f

View File

@@ -79,19 +79,18 @@ vim.keymap.set("n", "<leader>Y", "\"+Y", { desc = 'Paste to system clipboard' })
-- --
-- Diagnostics -- Diagnostics
-- --
vim.diagnostic.config({
-- Summary diagnostics at end of line for every error -- Summary diagnostics at end of line for every error
vim.diagnostic.config({
virtual_text = { virtual_text = {
virt_text_win_vol = 3, virt_text_win_vol = 3,
}, },
})
-- All diagnostics for the current line only -- All diagnostics for the current line only
vim.diagnostic.config({
virtual_lines = { virtual_lines = {
current_line = true current_line = true
} }
}) })
vim.keymap.set("n", "]g", vim.diagnostic.goto_next) vim.keymap.set("n", "]g", vim.diagnostic.goto_next)