diff options
author | pommicket <pommicket@gmail.com> | 2022-12-28 13:52:15 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-28 13:52:15 -0500 |
commit | 29c5c9b7544243a161d403b66ddfa11b6cdbbcf6 (patch) | |
tree | 28df44016f452f70c80bbcda276ff457b3f810f5 /main.c | |
parent | f57b21c5a6ac9913e3b9727abfed951708917250 (diff) |
fixed (all?) problems with signature help
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 26 |
1 files changed, 3 insertions, 23 deletions
@@ -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)) |