1
0

move diagnostic from right-aligned to 3 cols right of the line

This commit is contained in:
2025-03-31 21:47:56 +01:00
parent 0150632fc4
commit ea3ba146e3

View File

@@ -81,12 +81,7 @@ vim.keymap.set("n", "<leader>Y", "\"+Y")
-- End of line diagnostic for every error -- End of line diagnostic for every error
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = { virtual_text = {
format = function(diagnostic) virt_text_win_vol = 3,
local lines = vim.split(diagnostic.message, '\n')
return lines[1]
end,
virt_text_pos = 'right_align',
suffix = ' ',
}, },
}) })