vimrc: update diags in insert mode
This commit is contained in:
parent
7acdf351f3
commit
f004718325
17
vimrc
17
vimrc
@ -181,6 +181,7 @@ call tcomment#type#Define('nix', '# %s')
|
|||||||
call tcomment#type#Define('chaskell', '-- %s')
|
call tcomment#type#Define('chaskell', '-- %s')
|
||||||
call tcomment#type#Define('vala', '// %s')
|
call tcomment#type#Define('vala', '// %s')
|
||||||
call tcomment#type#Define('tptp', '%% %s')
|
call tcomment#type#Define('tptp', '%% %s')
|
||||||
|
call tcomment#type#Define('lean', '-- %s')
|
||||||
|
|
||||||
au syntax tex setl iskeyword+=:
|
au syntax tex setl iskeyword+=:
|
||||||
au syntax tex syn region texZone start="\\begin{clilisting}" end="\\end{clilisting}\|%stopzone\>"
|
au syntax tex syn region texZone start="\\begin{clilisting}" end="\\end{clilisting}\|%stopzone\>"
|
||||||
@ -264,6 +265,22 @@ require'compe'.setup {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
|
-- Enable underline, use default values
|
||||||
|
underline = true,
|
||||||
|
-- Enable virtual text, override spacing to 4
|
||||||
|
virtual_text = {
|
||||||
|
spacing = 4,
|
||||||
|
},
|
||||||
|
-- Use a function to dynamically turn signs off
|
||||||
|
-- and on, using buffer local variables
|
||||||
|
-- signs = function(bufnr, client_id)
|
||||||
|
-- return vim.bo[bufnr].show_signs == false
|
||||||
|
-- end,
|
||||||
|
update_in_insert = true,
|
||||||
|
})
|
||||||
|
|
||||||
local luadev = require("lua-dev").setup({
|
local luadev = require("lua-dev").setup({
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
cmd = {"lua-language-server"}
|
cmd = {"lua-language-server"}
|
||||||
|
Loading…
Reference in New Issue
Block a user