From febc7ee0fa2be5f0ef26b546eb84b5841d795c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 5 Apr 2022 15:07:24 +0900 Subject: [PATCH] placeholder completion fn if no LSP --- helix-view/src/commands/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helix-view/src/commands/mod.rs b/helix-view/src/commands/mod.rs index 5aa29ba4b..3f42bc4c9 100644 --- a/helix-view/src/commands/mod.rs +++ b/helix-view/src/commands/mod.rs @@ -3573,6 +3573,12 @@ fn remove_primary_selection(cx: &mut Context) { doc.set_selection(view.id, selection); } +#[cfg(not(feature = "lsp"))] +pub fn completion(cx: &mut Context) { + // TODO: +} + +#[cfg(feature = "lsp")] pub fn completion(cx: &mut Context) { use helix_lsp::{lsp, util::pos_to_lsp_pos};