From 77f4a590b498322e5475a1dc20d60ef44a9e2a04 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 11 Jun 2021 13:06:46 +0200 Subject: vim: update signify configuration --- .vim/lua/plugins/_lsp.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.vim/lua/plugins/_lsp.lua') 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 = { -- cgit 1.4.1