diff options
author | pommicket <pommicket@gmail.com> | 2023-09-10 00:11:27 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-10 00:11:43 -0400 |
commit | 21cb2ba466ec0876d4e04fcca117650101d9359f (patch) | |
tree | 19afe36254cedea198bba5f2a1af5443a27a30a7 /main.c | |
parent | 7185635a553d44b537d6fd1264ceedf421e114ef (diff) |
fix godot issues by adding lsp-delay
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,9 +1,8 @@ /* TODO: -- figure out how to deal with godot language server being so slow - one comparatively solution is to wait x seconds before sending a batch of requests in the communication thread - (this gives us time to cancel the irrelevant requests before they get sent to the server, - and we can remove stale full-sync didChange requests) +- on the last line of a buffer, shift+up end backspace acts weird +- restart LSP server automatically? + FUTURE FEATURES: - autodetect indentation (tabs vs spaces) - custom file/build command associations @@ -764,7 +763,7 @@ int main(int argc, char **argv) { char32_t last_char = 0; unicode_utf8_to_utf32(&last_char, &text[last_code_point], strlen(text) - last_code_point); - arr_foreach_ptr(lsp->completion_trigger_chars, char32_t, c) { + arr_foreach_ptr(lsp_completion_trigger_chars(lsp), const char32_t, c) { if (*c == last_char) { autocomplete_open(ted, last_char); break; |