summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorCPea <[email protected]>2022-06-23 12:59:30 +0700
committerGitHub <[email protected]>2022-06-23 10:29:30 +0430
commit16c0c862840b113374ed80e5e2ce56b59e03b298 (patch)
treee7a9ed7e6c54e6fe105a7330e9825501553809c0 /lua
parent0ee8b8f65313d33b1ea4f406b2c4e772b0fe4895 (diff)
chore(lsp): notify format request failed once when there is no client (#2697)
Diffstat (limited to 'lua')
-rw-r--r--lua/lvim/lsp/utils.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/lsp/utils.lua b/lua/lvim/lsp/utils.lua
index 252e611c..d0e36241 100644
--- a/lua/lvim/lsp/utils.lua
+++ b/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