Explorar el Código

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

CPea hace 3 años
padre
commit
16c0c86284
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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