summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 20e3e57..f0321ee 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,7 @@
/*
@TODO:
- send didClose
+- LSP setting
- scroll through completions
- figure out under which circumstances backspace should close completions
- rename buffer->filename to buffer->path
@@ -60,7 +61,7 @@ no_warn_end
#endif
#include "unicode.h"
-#include "arr.c"
+#include "ds.c"
#include "util.c"
#if _WIN32
@@ -315,7 +316,7 @@ int main(int argc, char **argv) {
LSPRequest test_req = {.type = LSP_REQUEST_COMPLETION};
test_req.data.completion = (LSPRequestCompletion){
.position = {
- .document = str_dup("/p/test-lsp/src/main.rs"),
+ .document = lsp_document_id(&lsp, "/p/test-lsp/src/main.rs"),
.pos = {
.line = 2,
.character = 2,