fix: diagnostic signs configuration

This commit is contained in:
Jeremy Wall 2025-06-25 09:59:53 -04:00
parent e605be817a
commit b254617843

View File

@ -273,20 +273,6 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'InsertLeave', 'CursorHold' }, {
})
-- LSP Diagnostics Options Setup
vim.diagnostics.config({ signs = {
text = {
[vim.diagnostic.severity.ERROR] = '🔥',
[vim.diagnostic.severity.WARN] = '⚠️',
[vim.diagnostic.severity.HINT] = '➡️',
[vim.diagnostic.severity.INFO] = '🗒️',
},
})
--sign({ name = 'DiagnosticSignError', text = '🔥' })
--sign({ name = 'DiagnosticSignWarn', text = '⚠️' })
--sign({ name = 'DiagnosticSignHint', text = '➡️' })
--sign({ name = 'DiagnosticSignInfo', text = '🗒️' })
vim.diagnostic.config({
virtual_text = false,
signs = true,
@ -299,6 +285,14 @@ vim.diagnostic.config({
header = '',
prefix = '',
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = '🔥',
[vim.diagnostic.severity.WARN] = '⚠️',
[vim.diagnostic.severity.HINT] = '➡️',
[vim.diagnostic.severity.INFO] = '🗒️',
},
}
})
vim.cmd([[