Selaa lähdekoodia

chore(lsp): notify format request failed once when there is no client (#2697)

CPea 3 vuotta sitten
vanhempi
commit
16c0c86284
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lua/lvim/lsp/utils.lua

+ 1 - 1
lua/lvim/lsp/utils.lua

@@ -176,7 +176,7 @@ function M.format(opts)
   end, clients)
 
   if #clients == 0 then
-    vim.notify "[LSP] Format request failed, no matching language servers."
+    vim.notify_once "[LSP] Format request failed, no matching language servers."
   end
 
   local timeout_ms = opts.timeout_ms or 1000