aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/leanls.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/leanls.lua b/lua/lspconfig/server_configurations/leanls.lua
index efefa913..52d55545 100644
--- a/lua/lspconfig/server_configurations/leanls.lua
+++ b/lua/lspconfig/server_configurations/leanls.lua
@@ -19,6 +19,10 @@ return {
or stdlib_dir
or util.find_git_ancestor(fname)
end,
+ on_new_config = function(config, root_dir)
+ -- add root dir as command-line argument for `ps aux`
+ table.insert(config.cmd, root_dir)
+ end,
single_file_support = true,
},
docs = {