summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
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);