aboutsummaryrefslogtreecommitdiff
path: root/lspc.lua
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-11-16 16:10:26 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-11-21 20:17:30 +0100
commit68484a2f17583428308427fd16c494e5ba204bc5 (patch)
tree13d5bd6cdeef2df6c22217913407696511be2bf2 /lspc.lua
parent418167354031ae75c55042574764745a7a825e8f (diff)
downloadvis-lspc-68484a2f17583428308427fd16c494e5ba204bc5.tar.gz
vis-lspc-68484a2f17583428308427fd16c494e5ba204bc5.zip
use a global mapping of open files
This allows us to support opening a single file in multiple language server instances. This can be useful when combining for example a latex and a language tool language server.
Diffstat (limited to 'lspc.lua')
-rw-r--r--lspc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lspc.lua b/lspc.lua
index 453f7b0..6ced4c6 100644
--- a/lspc.lua
+++ b/lspc.lua
@@ -18,6 +18,7 @@
local lspc = {
-- mapping language server names to their state tables
running = {},
+ open_files = {},
name = 'vis-lspc',
version = '0.1.8',
-- write log messages to lspc.log_file