summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-06 11:34:42 -0500
committerpommicket <pommicket@gmail.com>2023-01-06 11:34:42 -0500
commit268aba5dde93b67df5f5bd137141eeb177485685 (patch)
tree7971dd7fa565ff9efb3ee6857b68164a317a92ab /main.c
parentda244a2bfb1e1139e772e272166fc0ecd4898ad4 (diff)
start phantom completions
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/main.c b/main.c
index f9f2014..18276d2 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,5 @@
/*
@TODO:
-- LSP configuration in ted.cfg
- - disable publishDiagnostics for rust-analyzer (& others)?
- phantom completions
- debug-lsp option (which logs LSP messages)
- check LSP process status (TEST: what happens if LSP server is not installed)
@@ -747,11 +745,12 @@ int main(int argc, char **argv) {
// NOTE: we are not checking for signature help trigger
// characters because currently we ask for signature
// help any time a character is inserted.
-
- if (settings->identifier_trigger_characters
- && is32_word(last_char)
- && !is32_digit(last_char))
- autocomplete_open(ted, last_char);
+ if (is32_word(last_char)
+ && !is32_digit(last_char)) {
+ if (settings->identifier_trigger_characters) {
+ autocomplete_open(ted, last_char);
+ }
+ }
}
}