Selaa lähdekoodia

nixpkgs/neovim: increase debounce duration slightly

Thomas Dy 1 viikko sitten
vanhempi
commit
d846a7356a
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      .config/nixpkgs/neovim/lsp.lua

+ 6 - 3
.config/nixpkgs/neovim/lsp.lua

@@ -3,6 +3,12 @@ vim.diagnostic.config({
   virtual_text = { severity = { min = vim.diagnostic.severity.WARN } },
 })
 
+vim.lsp.config("*", {
+  flags = {
+    debounce_text_changes = 250,
+  }
+})
+
 vim.lsp.enable("bashls");
 vim.lsp.enable("eslint");
 
@@ -44,9 +50,6 @@ else
         vim.notify(string.format('Typescript %s', result.version))
       end,
     },
-    flags = {
-      debounce_text_changes = 150,
-    },
     on_init = function(client)
       -- mark tsserver as not having formatting available as we rely on
       -- eslint and dprint for that