From 6a4755ec3ee4c8214d76bf8b0461534490df47dd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 12 Jul 2025 21:00:14 -0400 Subject: add autoconfirm_edits configuration option Some language servers replace the whole file content on an edit, thus producing potentially really big diffs not suitable for review and user confirmation. So some users may just accept the changes proposed from the language server. --- lspc.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index d8348a4..f34ba4d 100644 --- a/lspc.lua +++ b/lspc.lua @@ -23,6 +23,8 @@ local lspc = { menu_cmd = 'vis-menu -l 10', -- program used to ask the user for confirmation confirm_cmd = 'vis-menu', + -- apply workspaceEdits without confirmation + autoconfirm_edits = false, -- should diagnostics be highlighted if available highlight_diagnostics = 'line', -- cgit v1.2.3