summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-05 11:05:47 -0500
committerpommicket <pommicket@gmail.com>2022-12-05 11:05:47 -0500
commit4dc976bc793af39ebad715ef669b335657926f65 (patch)
treeda899fcc20114dc9a426463b186b082de882c1a1 /lsp.c
parent0d39cca457e51bdf7bb7d9942a522e52bbedfa1f (diff)
start lsp
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
new file mode 100644
index 0000000..2c94dfa
--- /dev/null
+++ b/lsp.c
@@ -0,0 +1,14 @@
+typedef struct {
+ Process process;
+} LSP;
+
+static void send_message(LSP *lsp, const char *content, size_t content_size) {
+}
+
+void lsp_create(LSP *lsp, const char *analyzer_command) {
+ ProcessSettings settings = {
+ .stdin_blocking = true,
+ .stdout_blocking = true
+ };
+ process_run_ex(&lsp->process, analyzer_command, &settings);
+}