blob: 4fd50473a691347ac0d9f28e2fa3f2ec307340c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
vim.g.diagnostic_enable_virtual_text = 1
vim.g.diagnostic_trimmed_virtual_text = '40'
vim.g.diagnostic_insert_delay = 1
vim.api.nvim_command('nnoremap <silent> c[ <cmd>PrevDiagnosticCycle<cr>')
vim.api.nvim_command('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"})
vim.api.nvim_command('highlight link LspDiagnosticsError Error')
vim.api.nvim_command('highlight link LspDiagnosticsWarning WarningMsg')
vim.api.nvim_command('highlight link LspDiagnosticsInformation Todo')
vim.api.nvim_command('highlight link LspDiagnosticsHint Question')
|