placeholder completion fn if no LSP

This commit is contained in:
Blaž Hrastnik 2022-04-05 15:07:24 +09:00
parent eadb2eaad1
commit febc7ee0fa
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

View File

@ -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};