diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-07 19:15:23 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-01-21 19:39:11 +0100 |
| commit | 04db98668639cb0b431d50e5963f6b156d728078 (patch) | |
| tree | 4bec29af1c9c34852e974be06301f74de4802199 /.vim/lua/conf/diagnostic.lua | |
| parent | 9b8005439ac351ded8f6286aefa2378d25d7add5 (diff) | |
vim: big update; move lots of things to lua
Diffstat (limited to '.vim/lua/conf/diagnostic.lua')
| -rw-r--r-- | .vim/lua/conf/diagnostic.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.vim/lua/conf/diagnostic.lua b/.vim/lua/conf/diagnostic.lua new file mode 100644 index 0000000..4fd5047 --- /dev/null +++ b/.vim/lua/conf/diagnostic.lua @@ -0,0 +1,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') |