tidy diagnostics setup
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user