mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-21 08:21:14 +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:
parent
081bcc930f
commit
a1cda59a3a
8 changed files with 12 additions and 12 deletions
|
|
@ -14,7 +14,7 @@
|
|||
sync_on_ui_close = false;
|
||||
key.__raw = ''
|
||||
function()
|
||||
return vim.loop.cwd()
|
||||
return vim.uv.cwd()
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 = { };
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
}
|
||||
{
|
||||
type = "dir";
|
||||
header = [ { __raw = "' MRU' .. vim.loop.cwd()"; } ];
|
||||
header = [ { __raw = "' MRU' .. vim.uv.cwd()"; } ];
|
||||
}
|
||||
{
|
||||
type = "sessions";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue