From 9b904f5b7e9ea45b8ea5991f6eeb19c2f3949874 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 11 Aug 2026 21:20:17 +0200 Subject: LSP: save $SCITECO_LSP and $SCITECO_LSP_ROOT as part of buffer sessions If you have projects in different languages you can set different LSPs. The default will still come from ~/.teco_ini if you decide to set one. The default for $SCITECO_LSP_ROOT is set by session.tes' VCS integration based on the VCS root, but you could still overwrite it per session. --- doc/sciteco.1.in | 2 ++ fallback.teco_ini | Bin 2640 -> 2705 bytes lib/session.tes | Bin 3299 -> 3607 bytes 3 files changed, 2 insertions(+) diff --git a/doc/sciteco.1.in b/doc/sciteco.1.in index 858bf6d..1e7fe3b 100644 --- a/doc/sciteco.1.in +++ b/doc/sciteco.1.in @@ -399,6 +399,8 @@ The language server spawning works with UNIX98 shell emulation as well (bit 8 in \fBED\fP flags), but will otherwise use the shell from \fBSHELL\fP or \fBCOMSPEC\fP. \fBSCITECO_LSP_ROOT\fP can be set to the root directory of the language server's workspace (defaults to current directory at the time of spawning). +Both \fBSCITECO_LSP\fP and \fBSCITECO_LSP_ROOT\fP are persisted in buffer +sessions (see \fBsession.tes\fP). . .LP .SCITECO_TOPIC "$GTK_CSD" diff --git a/fallback.teco_ini b/fallback.teco_ini index bd92c29..d2472fb 100644 Binary files a/fallback.teco_ini and b/fallback.teco_ini differ diff --git a/lib/session.tes b/lib/session.tes index 6f3c7cc..084a918 100644 Binary files a/lib/session.tes and b/lib/session.tes differ -- cgit v1.2.3