Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott a74219cf8e configure diagnostics globally 2022-01-22 20:24:56 +00:00
Ray Elliott e0496c97f9 remove vim-dispatch 2022-01-22 20:24:43 +00:00
2 changed files with 10 additions and 12 deletions

View File

@ -301,12 +301,6 @@ let g:vim_markdown_fenced_languages = ['bash=sh']
"}}} "}}}
" do i still need, can i replace?
" #vim-dispatch{{{
" https://github.com/tpope/vim-dispatch
Plug 'tpope/vim-dispatch'
"}}}
" #vim-floaterm{{{ " #vim-floaterm{{{
" https://github.com/voldikss/floaterm " https://github.com/voldikss/floaterm
" allows to open floating terminal " allows to open floating terminal

View File

@ -1,13 +1,17 @@
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { vim.diagnostic.config({
virtual_text = { virtual_text = false,
prefix = '', -- Could be '■', '▎', 'x' signs = true,
source = 'always',
},
-- signs = true,
underline = false, underline = false,
update_in_insert = false, update_in_insert = false,
severity_sort = false,
}) })
local signs = { Error = "", Warn = "", Hint = "", Info = "" }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
vim.cmd [[ vim.cmd [[
sign define LspDiagnosticsSignError text= texthl= linehl= numhl=LspDiagnosticsLineNrError sign define LspDiagnosticsSignError text= texthl= linehl= numhl=LspDiagnosticsLineNrError
sign define LspDiagnosticsSignWarning text= texthl= linehl= numhl=LspDiagnosticsLineNrWarning sign define LspDiagnosticsSignWarning text= texthl= linehl= numhl=LspDiagnosticsLineNrWarning