From 5e4d258f8eba4090b9a515ee9b77d8647394b2cd Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sat, 16 Sep 2023 22:37:45 -0700 Subject: fix: LSP formatter respects quiet = true --- lua/conform/lsp_format.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/conform/lsp_format.lua b/lua/conform/lsp_format.lua index 1400f3b..0315314 100644 --- a/lua/conform/lsp_format.lua +++ b/lua/conform/lsp_format.lua @@ -105,7 +105,9 @@ function M.format(options, callback) if result and result.result then apply_text_edits(result.result, bufnr, client.offset_encoding) elseif err then - vim.notify(string.format("[LSP][%s] %s", client.name, err), vim.log.levels.WARN) + if not options.quiet then + vim.notify(string.format("[LSP][%s] %s", client.name, err), vim.log.levels.WARN) + end return callback(string.format("[LSP][%s] %s", client.name, err)) end end -- cgit v1.2.3-70-g09d2