format options
This commit is contained in:
@ -113,8 +113,7 @@ vim.diagnostic.config({
|
|||||||
float = {
|
float = {
|
||||||
border = 'single',
|
border = 'single',
|
||||||
format = function(diagnostic)
|
format = function(diagnostic)
|
||||||
return string.format('%s (%s) [%s]', diagnostic.message, diagnostic.source,
|
return string.format('%s (%s) [%s]', diagnostic.message, diagnostic.source, diagnostic.code or diagnostic.user_data.lsp.code)
|
||||||
diagnostic.code or diagnostic.user_data.lsp.code)
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user