Use native diagnostic virtual lines
This commit is contained in:
@@ -75,18 +75,19 @@ vim.keymap.set("n", "<leader>Y", "\"+Y")
|
||||
-- Diagnostics
|
||||
--
|
||||
|
||||
-- Disable built-in
|
||||
-- vim.diagnostic.config({ virtual_text = false } )
|
||||
|
||||
-- End of line diagnostic for every error
|
||||
-- Summary diagnostics at end of line for every error
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
virt_text_win_vol = 3,
|
||||
},
|
||||
})
|
||||
|
||||
-- Enable all errors for the current line only
|
||||
vim.diagnostic.config({ virtual_lines = { only_current_line = true } })
|
||||
-- All diagnostics for the current line only
|
||||
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_prev)
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||
config = function()
|
||||
require("lsp_lines").setup()
|
||||
end,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user