summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-24 12:02:40 -0500
committerpommicket <pommicket@gmail.com>2022-12-24 12:02:40 -0500
commita6a06900bf7206dc86017bbb1895272ebfac5418 (patch)
tree2f49cee6002d5d10bb4afc0db18425e5f5dfb38e /lsp.c
parent1c346f2aba30fcb581f20f2b67bd5e6adcb4a7e6 (diff)
start LSP setting
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index a8a2445..7aa4d56 100644
--- a/lsp.c
+++ b/lsp.c
@@ -295,6 +295,11 @@ LSP *lsp_create(const char *root_dir, Language language, const char *analyzer_co
LSP *lsp = calloc(1, sizeof *lsp);
if (!lsp) return NULL;
+ #if DEBUG
+ printf("Starting up LSP `%s` for language %s in %s\n",
+ analyzer_command, language_to_str(language), root_dir);
+ #endif
+
ProcessSettings settings = {
.stdin_blocking = true,
.stdout_blocking = false,