From 423f7cb5adf33b7f8b02017f72dd4c01cf844d93 Mon Sep 17 00:00:00 2001 From: hatoo Date: Thu, 15 Feb 2024 16:03:04 +0900 Subject: [PATCH] completion true/false --- src/src_tree.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/src_tree.rs b/src/src_tree.rs index f27845f..ef50eac 100644 --- a/src/src_tree.rs +++ b/src/src_tree.rs @@ -545,6 +545,11 @@ impl SrcTree { kind: Some(CompletionItemKind::FUNCTION), ..Default::default() }) + .chain(vec!["true", "false"].into_iter().map(|s| CompletionItem { + label: s.to_string(), + kind: Some(CompletionItemKind::VARIABLE), + ..Default::default() + })) .collect(); }