summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-06 12:02:11 -0500
committerpommicket <pommicket@gmail.com>2023-01-06 12:02:11 -0500
commit2d32df18e83b059834ae65904e6439c72372454b (patch)
tree8a2190342c2cfdb16308c2c4138fdd52dad575ff /ted.c
parentd69fb12c055e1e17c765ca9714c508552a027384 (diff)
lsp-log setting
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ted.c b/ted.c
index 4a76cd7..ae1908b 100644
--- a/ted.c
+++ b/ted.c
@@ -191,8 +191,9 @@ LSP *ted_get_lsp(Ted *ted, const char *path, Language language) {
return NULL; // why are there so many LSP open???
if (*settings->lsp) {
// start up this LSP
+ FILE *log = settings->lsp_log ? ted->log : NULL;
char *root_dir = settings_get_root_dir(settings, path);
- ted->lsps[i] = lsp_create(root_dir, settings->lsp, settings->lsp_configuration);
+ ted->lsps[i] = lsp_create(root_dir, settings->lsp, settings->lsp_configuration, log);
free(root_dir);
// don't actually return it yet, since it's still initializing (see above)
}