aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-31 02:26:20 +0000
committerBlaž Hrastnik2023-03-31 06:19:36 +0000
commit9fe3adcff9866ef18953a067fbc0b84e7eb968b5 (patch)
tree067f52b556165bc462cca1fdc48e959f697638b5 /helix-term/src/commands
parenta48d1a4abc0d23d6bc3cfda714d87b9fa4484da8 (diff)
add option to enable/disable lsp snippets
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r--helix-term/src/commands/typed.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index ca55151a..0255bbea 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1378,9 +1378,12 @@ fn lsp_restart(
.context("LSP not defined for the current document")?;
let scope = config.scope.clone();
- cx.editor
- .language_servers
- .restart(config, doc.path(), &editor_config.workspace_lsp_roots)?;
+ cx.editor.language_servers.restart(
+ config,
+ doc.path(),
+ &editor_config.workspace_lsp_roots,
+ editor_config.lsp.snippets,
+ )?;
// This collect is needed because refresh_language_server would need to re-borrow editor.
let document_ids_to_refresh: Vec<DocumentId> = cx