aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-09 15:51:02 +0900
committerGitHub <noreply@github.com>2020-02-08 22:51:02 -0800
commitdd8b29cfe25604c062b76bb3a9347c5d740365ba (patch)
treecaef54e534e9a0c6b09ee70ed2d93d5383470772 /runtime/lua/vim/lsp.lua
parent1f479fffbf220deba897dc969631edfd28f707b3 (diff)
downloadrneovim-dd8b29cfe25604c062b76bb3a9347c5d740365ba.tar.gz
rneovim-dd8b29cfe25604c062b76bb3a9347c5d740365ba.tar.bz2
rneovim-dd8b29cfe25604c062b76bb3a9347c5d740365ba.zip
LSP: set InitializeParams.rootPath value #11838
InitializeParams.rootPath is deprecated now. But some language servers still use it.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index cfa208f21c..304686a816 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -452,7 +452,7 @@ function lsp.start_client(config)
-- The rootPath of the workspace. Is null if no folder is open.
--
-- @deprecated in favour of rootUri.
- rootPath = nil;
+ rootPath = config.root_dir;
-- The rootUri of the workspace. Is null if no folder is open. If both
-- `rootPath` and `rootUri` are set `rootUri` wins.
rootUri = vim.uri_from_fname(config.root_dir);