summary refs log tree commit diff
path: root/.vim/lua/plugins/_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.vim/lua/plugins/_lsp.lua16
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 = {