summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-19 11:00:45 -0500
committerpommicket <pommicket@gmail.com>2022-12-19 11:00:45 -0500
commit8deb7afed44d7be52cb450c3177ecc8e63fd46eb (patch)
tree50dbc44e54bf7d06a9e118d73e167f2a116b72ee /main.c
parent70d19dbf9fc9bcbbcd0208b4b6e42017fcc5e826 (diff)
much better system for writing requests
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index f8e3c98..2c0a18d 100644
--- a/main.c
+++ b/main.c
@@ -311,8 +311,10 @@ int main(int argc, char **argv) {
test_req.data.completion = (LSPRequestCompletion){
.position = {
.path = str_dup("/p/test-lsp/src/main.rs"),
- .line = 2,
- .character = 2,
+ .pos = {
+ .line = 2,
+ .character = 2,
+ },
}
};
lsp_send_request(&lsp, &test_req);