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>2024-04-30 21:39:15 +0200
commit65b57fade82e0ad6ce3bdb8f8fa03e807eb29b16 (patch)
treebd7f8fcab3a1cbc8ce4c58831a8108371c3bf791 /lspc.lua
parent53c6d728d0f39e361a1922f77f45786616f69f1c (diff)
downloadvis-lspc-65b57fade82e0ad6ce3bdb8f8fa03e807eb29b16.tar.gz
vis-lspc-65b57fade82e0ad6ce3bdb8f8fa03e807eb29b16.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 aa771ed..a1acb86 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