From 16c0c862840b113374ed80e5e2ce56b59e03b298 Mon Sep 17 00:00:00 2001 From: CPea <42694704+cpea2506@users.noreply.github.com> Date: Thu, 23 Jun 2022 12:59:30 +0700 Subject: [PATCH] chore(lsp): notify format request failed once when there is no client (#2697) --- lua/lvim/lsp/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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