summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-18 23:02:53 -0500
committerpommicket <pommicket@gmail.com>2022-12-18 23:02:53 -0500
commit70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (patch)
tree23a8a00ccfc2881399def21d97b446ef2286c68e /buffer.c
parent54a558c41366579ae35ca8cbfae097481bb36b9b (diff)
a bunch of brekaing changes
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index afb3306..ad8363c 100644
--- a/buffer.c
+++ b/buffer.c
@@ -2132,8 +2132,8 @@ Status buffer_load_file(TextBuffer *buffer, char const *filename) {
LSP *lsp = buffer_lsp(buffer);
if (lsp) {
// send didOpen
- LSPRequest request = {.type = LSP_OPEN};
- LSPRequestOpen *open = &request.data.open;
+ LSPRequest request = {.type = LSP_REQUEST_DID_OPEN};
+ LSPRequestDidOpen *open = &request.data.open;
open->file_contents = (char *)file_contents;
open->path = str_dup(filename);
open->language = buffer_language(buffer);