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