mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
fix(install): vim.uv compatibility shim for 0.9
This commit is contained in:
parent
3d1f5e7df8
commit
176e446473
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local utils = require "nvim-treesitter.utils"
|
local utils = require "nvim-treesitter.utils"
|
||||||
|
local uv = vim.uv or vim.loop
|
||||||
|
|
||||||
-- Convert path for cmd.exe on Windows.
|
-- Convert path for cmd.exe on Windows.
|
||||||
-- This is needed when vim.opt.shellslash is in use.
|
-- 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_PREFIX",
|
||||||
"GIT_WORK_TREE",
|
"GIT_WORK_TREE",
|
||||||
} do
|
} do
|
||||||
if vim.uv.os_getenv(k) then
|
if uv.os_getenv(k) then
|
||||||
vim.api.nvim_err_writeln(
|
vim.api.nvim_err_writeln(
|
||||||
string.format(
|
string.format(
|
||||||
"Cannot install %s with git in an active git session. Exit the session and run ':TSInstall %s' manually",
|
"Cannot install %s with git in an active git session. Exit the session and run ':TSInstall %s' manually",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue