Merge pull request #5 from ronandalton/fix-unnecessary-diagnostic-config

fix(diagnostic): remove unnecessary config lines
pull/1627/head
Ori Perry 6 days ago committed by GitHub
commit 09d58dc946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -631,7 +631,6 @@ require('lazy').setup({
vim.diagnostic.config {
severity_sort = true,
float = { border = 'rounded', source = 'if_many' },
underline = { severity = vim.diagnostic.severity.ERROR },
signs = vim.g.have_nerd_font and {
text = {
[vim.diagnostic.severity.ERROR] = '󰅚 ',
@ -643,15 +642,6 @@ require('lazy').setup({
virtual_text = {
source = 'if_many',
spacing = 2,
format = function(diagnostic)
local diagnostic_message = {
[vim.diagnostic.severity.ERROR] = diagnostic.message,
[vim.diagnostic.severity.WARN] = diagnostic.message,
[vim.diagnostic.severity.INFO] = diagnostic.message,
[vim.diagnostic.severity.HINT] = diagnostic.message,
}
return diagnostic_message[diagnostic.severity]
end,
},
-- Display multiline diagnostics as virtual lines
-- virtual_lines = true,

Loading…
Cancel
Save