aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/util.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index dbac70fd..8fe94741 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -273,6 +273,10 @@ function M.server_per_root_dir_manager(_make_config)
clients[root_dir] = nil
single_file_clients[root_dir] = nil
end)
+
+ -- Launch the server in the root directory used internally by lspconfig, if applicable
+ new_config.cwd = root_dir
+
-- Sending rootDirectory and workspaceFolders as null is not explicitly
-- codified in the spec. Certain servers crash if initialized with a NULL
-- root directory.