summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 16:27:06 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 16:27:06 -0500
commit6bb4da5fab94d2ed3d093b996674fd1cc28eda2f (patch)
treed986574a0100cd4d35782585a8309815f8bf1b49 /main.c
parentf2296487cf9b2e86261eaf1d448b723f3ef70202 (diff)
document IDs instead of documents
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,