aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/manager.lua
diff options
context:
space:
mode:
authorChris Bandy <bandy.chris@gmail.com>2025-04-10 22:48:31 +0000
committerGitHub <noreply@github.com>2025-04-10 15:48:31 -0700
commit4ea9083b6d3dff4ddc6da17c51334c3255b7eba5 (patch)
treeb3c094868a4942151bf8ec0d5cd87bf7cac85a92 /lua/lspconfig/manager.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-2.0.0.tar
nvim-lspconfig-2.0.0.tar.gz
nvim-lspconfig-2.0.0.tar.bz2
nvim-lspconfig-2.0.0.tar.lz
nvim-lspconfig-2.0.0.tar.xz
nvim-lspconfig-2.0.0.tar.zst
nvim-lspconfig-2.0.0.zip
refactor: replace vim.loop with vim.uv #3703v2.0.0
The former is deprecated in neovim 0.10. Remove the check added in 9b89ba5f158f73779cd58d0bb2783dfb40b28b0e. See: https://github.com/neovim/neovim/blob/v0.10.0/runtime/doc/deprecated.txt#L55
Diffstat (limited to 'lua/lspconfig/manager.lua')
-rw-r--r--lua/lspconfig/manager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua
index a07aa4a9..d69e84f1 100644
--- a/lua/lspconfig/manager.lua
+++ b/lua/lspconfig/manager.lua
@@ -115,7 +115,7 @@ function M:_start_client(bufnr, new_config, root_dir, single_file, silent)
-- Launch the server in the root directory used internally by lspconfig, if otherwise unset
-- also check that the path exist
- if not new_config.cmd_cwd and vim.loop.fs_realpath(root_dir) then
+ if not new_config.cmd_cwd and vim.uv.fs_realpath(root_dir) then
new_config.cmd_cwd = root_dir
end
@@ -202,7 +202,7 @@ function M:try_add(bufnr, project_root, silent)
local get_root_dir = self.config.root_dir
- local pwd = assert(vim.loop.cwd())
+ local pwd = assert(vim.uv.cwd())
async.run(function()
local root_dir