aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSteve Vermeulen <sfvermeulen@gmail.com>2024-08-09 21:06:51 +0800
committerGitHub <noreply@github.com>2024-08-09 13:06:51 +0000
commit176e4464736c1feca190d77f481ed5972b513516 (patch)
treedc1f38ae330709c0d89b1a1cdc9450e89f8359e5 /lua
parentbot(lockfile): update idl, scala (diff)
downloadnvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar.gz
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar.bz2
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar.lz
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar.xz
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.tar.zst
nvim-treesitter-176e4464736c1feca190d77f481ed5972b513516.zip
fix(install): vim.uv compatibility shim for 0.9
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 89df8644b..48f610169 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -1,5 +1,6 @@
local fn = vim.fn
local utils = require "nvim-treesitter.utils"
+local uv = vim.uv or vim.loop
-- Convert path for cmd.exe on Windows.
-- This is needed when vim.opt.shellslash is in use.
@@ -303,7 +304,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision,
"GIT_PREFIX",
"GIT_WORK_TREE",
} do
- if vim.uv.os_getenv(k) then
+ if uv.os_getenv(k) then
vim.api.nvim_err_writeln(
string.format(
"Cannot install %s with git in an active git session. Exit the session and run ':TSInstall %s' manually",