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
|
-- 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 = ' ',
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user