diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-12-01 13:01:51 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-02 11:12:18 +0100 |
| commit | 9b89ba5f158f73779cd58d0bb2783dfb40b28b0e (patch) | |
| tree | d35c60d499f9866c6f0ad9298f4ceea26e83eb1d /lua/lspconfig/manager.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.gz nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.bz2 nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.lz nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.xz nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.zst nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.zip | |
refactor: replace all instances of vim.uv with vim.loop
We still support neovim 0.9 currently, so we can't use vim.uv. Also add
a check so we don't accidentally reintroduce it.
Diffstat (limited to 'lua/lspconfig/manager.lua')
| -rw-r--r-- | lua/lspconfig/manager.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua index 37ba0c58..a07aa4a9 100644 --- a/lua/lspconfig/manager.lua +++ b/lua/lspconfig/manager.lua @@ -1,6 +1,5 @@ local api = vim.api local lsp = vim.lsp -local uv = vim.uv or vim.loop local async = require 'lspconfig.async' local util = require 'lspconfig.util' @@ -116,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 uv.fs_realpath(root_dir) then + if not new_config.cmd_cwd and vim.loop.fs_realpath(root_dir) then new_config.cmd_cwd = root_dir end @@ -203,7 +202,7 @@ function M:try_add(bufnr, project_root, silent) local get_root_dir = self.config.root_dir - local pwd = assert(uv.cwd()) + local pwd = assert(vim.loop.cwd()) async.run(function() local root_dir |
