Ver Fonte

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

CPea há 3 anos atrás
pai
commit
16c0c86284
1 ficheiros alterados com 1 adições e 1 exclusões
  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