summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 13:52:15 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 13:52:15 -0500
commit29c5c9b7544243a161d403b66ddfa11b6cdbbcf6 (patch)
tree28df44016f452f70c80bbcda276ff457b3f810f5 /main.c
parentf57b21c5a6ac9913e3b9727abfed951708917250 (diff)
fixed (all?) problems with signature help
Diffstat (limited to 'main.c')
-rw-r--r--main.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/main.c b/main.c
index 4cad511..9cd5d27 100644
--- a/main.c
+++ b/main.c
@@ -1,9 +1,6 @@
/*
@TODO:
-- why is jdtls not giving us signatures?
-- why is clangd not giving us active parameter?
- more LSP stuff:
- - signature help
- hover
- go to definition using LSP
- find usages
@@ -780,26 +777,9 @@ int main(int argc, char **argv) {
break;
}
}
-
- bool signature_help = false;
- arr_foreach_ptr(lsp->signature_help_trigger_chars, char32_t, c) {
- if (*c == last_char) {
- signature_help = true;
- break;
- }
- }
-
- if (signature_help_is_open(ted)) {
- arr_foreach_ptr(lsp->signature_help_retrigger_chars, char32_t, c) {
- if (*c == last_char) {
- signature_help = true;
- break;
- }
- }
- }
-
- if (signature_help)
- signature_help_open(ted, last_char);
+ // 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 && is_word(last_char)
&& !is_digit(last_char))