aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-11-19 11:08:19 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-11-19 11:08:19 +0100
commit96c2b2deb9f1d1d0ac07932308c34eb6a9375135 (patch)
treefd3c1c5cbf66b36ca54d3a837ee535a23542bc12
parent0edb6daa792d298e270df471aa4f87ca67db897d (diff)
downloadvis-lspc-main.tar.gz
vis-lspc-main.zip
start each language server in a new session if setsid is availableHEADmain
-rw-r--r--lspc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lspc.lua b/lspc.lua
index 96effe6..1b462bb 100644
--- a/lspc.lua
+++ b/lspc.lua
@@ -91,6 +91,11 @@ if os.execute('type fzf >/dev/null 2>/dev/null') then
lspc.menu_cmd = 'fzf'
end
+-- check if setsid is available and prefix all language servers to survive Strg+C
+if os.execute('type setsid >/dev/null 2>/dev/null') then
+ lspc.ls_command_prefix = 'setsid'
+end
+
local supported_markup_kind = {'markdown'}
local goto_methods_capabilities = {