diff options
| author | Robert Günzler <r@gnzler.io> | 2021-06-11 13:06:46 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-06-11 13:06:46 +0200 |
| commit | 77f4a590b498322e5475a1dc20d60ef44a9e2a04 (patch) | |
| tree | 5d09b7904619f8c812f20d7756f8303b366f06c4 /.vim/lua/plugins/_lsp.lua | |
| parent | 7f68dd013f46de0bed23452b89879038110114a6 (diff) | |
vim: update signify configuration
Diffstat (limited to '.vim/lua/plugins/_lsp.lua')
| -rw-r--r-- | .vim/lua/plugins/_lsp.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.vim/lua/plugins/_lsp.lua b/.vim/lua/plugins/_lsp.lua index 9c52998..39a10b9 100644 --- a/.vim/lua/plugins/_lsp.lua +++ b/.vim/lua/plugins/_lsp.lua @@ -32,9 +32,9 @@ local my_attach = function(client) u.augroup2 { lsp_user = { - {'BufWritePre', '*', 'lua vim.lsp.buf.formatting_sync(nil, 1000)'}, - {'BufWritePre', '*.go', 'lua vim.lsp.buf.code_action({ source = { organizeImports = true } })'}, - {'CursorHold', '*', 'lua vim.lsp.diagnostic.show_line_diagnostics()'}, + {'BufWritePre' , '*' , 'lua vim.lsp.buf.formatting_sync(nil, 1000)'}, + {'BufWritePre' , '*.go' , 'lua vim.lsp.buf.code_action({ source = { organizeImports = true } })'}, + -- {'CursorHold' , '*' , 'lua vim.lsp.diagnostic.show_line_diagnostics()'}, } } end @@ -43,10 +43,10 @@ end -- configure builtin diagnositcs vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( -- {{{ vim.lsp.diagnostic.on_publish_diagnostics, { - virtual_text = false, - signs = true, - underline = true, - update_in_insert = true, + virtual_text = false, + signs = true, + underline = true, + update_in_insert = false, } ) -- }}} @@ -148,7 +148,7 @@ lsp.efm.setup{ on_attach = my_attach, root_dir = util.root_pattern('.git', '.editorconfig'), init_options = { documentFormatting = true }, - filetypes = { "sh" }, + -- filetypes = { "sh", "c" }, settings = { -- rootMarkers = {".git/"}, languages = { |