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 c[ PrevDiagnosticCycle') cmd('nnoremap c] NextDiagnosticCycle') 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')