blob: fe80fff9c56afde693897b76c07cb723a04ce787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local g = vim.g
local cmd = vim.api.nvim_command
g.diagnostic_enable_virtual_text = 1
g.diagnostic_trimmed_virtual_text = '40'
g.diagnostic_insert_delay = 1
cmd('nnoremap <silent> c[ <cmd>PrevDiagnosticCycle<cr>')
cmd('nnoremap <silent> c] <cmd>NextDiagnosticCycle<cr>')
vim.fn.sign_define("LspDiagnosticsErrorSign", {text="✘", texthl="LspDiagnosticsError"})
vim.fn.sign_define("LspDiagnosticsWarningSign", {text="‼", texthl="LspDiagnosticsWarning"})
vim.fn.sign_define("LspDiagnosticsInformationSign", {text="i", texthl="LspDiagnosticsInformation"})
vim.fn.sign_define("LspDiagnosticsHintSign", {text="☛",texthl="LspDiagnosticsHint"})
cmd('highlight link LspDiagnosticsError Error')
cmd('highlight link LspDiagnosticsWarning WarningMsg')
cmd('highlight link LspDiagnosticsInformation Todo')
cmd('highlight link LspDiagnosticsHint Question')
|