Skip to content

Commit 09d58dc

Browse files
authored
Merge pull request #5 from ronandalton/fix-unnecessary-diagnostic-config
fix(diagnostic): remove unnecessary config lines
2 parents d147077 + 7c31d2c commit 09d58dc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

init.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ require('lazy').setup({
631631
vim.diagnostic.config {
632632
severity_sort = true,
633633
float = { border = 'rounded', source = 'if_many' },
634-
underline = { severity = vim.diagnostic.severity.ERROR },
635634
signs = vim.g.have_nerd_font and {
636635
text = {
637636
[vim.diagnostic.severity.ERROR] = '󰅚 ',
@@ -643,15 +642,6 @@ require('lazy').setup({
643642
virtual_text = {
644643
source = 'if_many',
645644
spacing = 2,
646-
format = function(diagnostic)
647-
local diagnostic_message = {
648-
[vim.diagnostic.severity.ERROR] = diagnostic.message,
649-
[vim.diagnostic.severity.WARN] = diagnostic.message,
650-
[vim.diagnostic.severity.INFO] = diagnostic.message,
651-
[vim.diagnostic.severity.HINT] = diagnostic.message,
652-
}
653-
return diagnostic_message[diagnostic.severity]
654-
end,
655645
},
656646
-- Display multiline diagnostics as virtual lines
657647
-- virtual_lines = true,

0 commit comments

Comments
 (0)