18 lines
669 B
Lua
18 lines
669 B
Lua
|
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
|
||
|
virtual_text = {
|
||
|
prefix = '●', -- Could be '■', '▎', 'x'
|
||
|
source = 'always',
|
||
|
},
|
||
|
-- signs = true,
|
||
|
underline = false,
|
||
|
update_in_insert = false,
|
||
|
})
|
||
|
|
||
|
vim.cmd [[
|
||
|
sign define LspDiagnosticsSignError text= texthl= linehl= numhl=LspDiagnosticsLineNrError
|
||
|
sign define LspDiagnosticsSignWarning text= texthl= linehl= numhl=LspDiagnosticsLineNrWarning
|
||
|
sign define LspDiagnosticsSignInfo text= texthl= linehl= numhl=LspDiagnosticsLineNrInformation
|
||
|
sign define LspDiagnosticsSignHint text= texthl= linehl= numhl=LspDiagnosticsLineNrHint
|
||
|
]]
|
||
|
|