summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-10 00:11:27 -0400
committerpommicket <pommicket@gmail.com>2023-09-10 00:11:43 -0400
commit21cb2ba466ec0876d4e04fcca117650101d9359f (patch)
tree19afe36254cedea198bba5f2a1af5443a27a30a7 /main.c
parent7185635a553d44b537d6fd1264ceedf421e114ef (diff)
fix godot issues by adding lsp-delay
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.c b/main.c
index 5deabac..f12ee19 100644
--- a/main.c
+++ b/main.c
@@ -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;