customise lsp diagnostics
This commit is contained in:
parent
b6842faf9e
commit
9df6cad0e2
5
init.vim
5
init.vim
|
@ -9,6 +9,11 @@ source ~/.config/nvim/init.tabline.vim
|
|||
source ~/.config/nvim/init.auto-window.vim
|
||||
source ~/.config/nvim/init.fold-text.vim
|
||||
source ~/.config/nvim/init.commands.vim
|
||||
"
|
||||
" require lua init modules
|
||||
lua <<EOF
|
||||
require('init-lsp')
|
||||
EOF
|
||||
|
||||
" TODO - maybe separate some of these into own files too
|
||||
" #functions {{{
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
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
|
||||
]]
|
||||
|
Loading…
Reference in New Issue