diagnostics inline display changes

main
Mathias Rothenhaeusler 2025-11-15 16:42:36 +01:00
parent 37fb243950
commit 9ac8c17116
1 changed files with 11 additions and 1 deletions

View File

@ -36,7 +36,17 @@ do
end
---------- </border ------------------------------
vim.diagnostic.config({ virtual_lines = { current_line = true } })
vim.diagnostic.config({
virtual_text = false, -- Disable inline virtual text
float = {
border = "rounded", -- You can choose "single", "double", etc.
source = "always", -- Show the source of the diagnostic (set to 'if_many' for less clutter)
header = "", -- Optional: add a header to the float window
prefix = "", -- Optional: prefix for each diagnostic (leave empty for no prefix)
},
underline = true, -- Optional: underline the lines with errors
signs = true, -- Optional: show signs in the sign column
})
-- enable keybinds only for when lsp server available
local on_attach = function(_, bufnr)