move diagnostic from right-aligned to 3 cols right of the line
This commit is contained in:
@@ -81,12 +81,7 @@ vim.keymap.set("n", "<leader>Y", "\"+Y")
|
||||
-- End of line diagnostic for every error
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
format = function(diagnostic)
|
||||
local lines = vim.split(diagnostic.message, '\n')
|
||||
return lines[1]
|
||||
end,
|
||||
virt_text_pos = 'right_align',
|
||||
suffix = ' ',
|
||||
virt_text_win_vol = 3,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user