summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-24 12:24:29 -0500
committerpommicket <pommicket@gmail.com>2022-12-24 12:24:29 -0500
commite1b3296d7ecae1bf1620f53714ec3ba5b31709d4 (patch)
treefbd3cf86c686a6116abce3b1b82046feb7afea07 /main.c
parenta6a06900bf7206dc86017bbb1895272ebfac5418 (diff)
LSP setting!
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/main.c b/main.c
index 9df6824..6cb5161 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,8 @@
/*
@TODO:
-- why is it creating the LSP on exit
+- why arent we always sending didOpen?
- make sure "save as" works
+- workspaceFolders support (so we don't need to start up multiple instances of rust-analyzer)
- more LSP stuff:
- go to definition using LSP
- find usages
@@ -362,14 +363,6 @@ int main(int argc, char **argv) {
}
ted->last_save_time = -1e50;
-
- // @TODO TEMPORARY
- ted->lsps[0] = lsp_create("/p/autosdf", LANG_RUST, "rust-analyzer");
- if (!ted->lsps[0]) {
- printf("couldn't create LSP\n");
- exit(1);
- }
-
// make sure signal handler has access to ted.
error_signal_handler_ted = ted;