1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-21 00:11:13 +01:00

treewide: vim.loop -> vim.uv

vim.loop is deprecated and vim.uv is preferred https://neovim.io/doc/user/deprecated.html#vim.loop
This commit is contained in:
Austin Horstman 2025-12-16 19:05:04 -06:00 committed by Gaétan Lepage
parent 081bcc930f
commit a1cda59a3a
8 changed files with 12 additions and 12 deletions

View file

@ -14,7 +14,7 @@
sync_on_ui_close = false;
key.__raw = ''
function()
return vim.loop.cwd()
return vim.uv.cwd()
end
'';
};

View file

@ -14,17 +14,17 @@
preset = "none";
get_playwright_binary.__raw = ''
function()
return vim.loop.cwd() + "/node_modules/.bin/playwright"
return vim.uv.cwd() + "/node_modules/.bin/playwright"
end
'';
get_playwright_config.__raw = ''
function()
return vim.loop.cwd() + "/playwright.config.ts"
return vim.uv.cwd() + "/playwright.config.ts"
end
'';
get_cwd.__raw = ''
function()
return vim.loop.cwd()
return vim.uv.cwd()
end
'';
env = { };

View file

@ -52,7 +52,7 @@
should_save.__raw = ''
function()
-- Do not save session when the current cwd is git root
local uv = vim.loop
local uv = vim.uv
local cwd = uv.cwd()
local git_dir = uv.fs_stat(cwd .. "/.git")
if git_dir == nil then

View file

@ -16,7 +16,7 @@
}
{
type = "dir";
header = [ { __raw = "' MRU' .. vim.loop.cwd()"; } ];
header = [ { __raw = "' MRU' .. vim.uv.cwd()"; } ];
}
{
type = "sessions";

View file

@ -16,8 +16,8 @@
settings = {
theme.__raw = "nil";
path.__raw = "vim.loop.cwd()";
cwd.__raw = "vim.loop.cwd()";
path.__raw = "vim.uv.cwd()";
cwd.__raw = "vim.uv.cwd()";
cwd_to_path = false;
grouped = false;
files = true;