aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-12 21:00:14 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-07-12 21:00:14 -0400
commit6a4755ec3ee4c8214d76bf8b0461534490df47dd (patch)
tree681d3e2557544e7008dba8644a98f0f37a1f2b37 /README.md
parent05f2d8e253c3523e63ea08018f8bb9d23f6659b5 (diff)
downloadvis-lspc-6a4755ec3ee4c8214d76bf8b0461534490df47dd.tar.gz
vis-lspc-6a4755ec3ee4c8214d76bf8b0461534490df47dd.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6825aef..8475982 100644
--- a/README.md
+++ b/README.md
@@ -120,6 +120,7 @@ Available options are:
* `autostart = true` - try to start a language server in WIN_OPEN
* `menu_cmd = 'fzf' or 'vis-menu'` - program to prompt for user choices
* `confirm_cmd = 'vis-menu'` - program to prompt for user confirmation
+* `autoconfirm_edits = false` - apply workspaceEdits without user confirmation
* `ls_map` - a table mapping `vis` syntax names to language server configurations
* `highlight_diagnostics = 'line'` - highlight the `range` or `line`number of available diagnostics
* `diagnostic_style_id = nil` - vis style id used to highlight diagnostics, win.STYLE_LEXER_MAX is used by default