1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-18 23:11:12 +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

@ -33,7 +33,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
''; '';
cmake_build_directory = defaultNullOpts.mkStr "out/\${variant:buildType}" '' cmake_build_directory = defaultNullOpts.mkStr "out/\${variant:buildType}" ''
This is used to specify generate directory for cmake, allows macro expansion, relative to vim.loop.cwd(). This is used to specify generate directory for cmake, allows macro expansion, relative to vim.uv.cwd().
''; '';
cmake_soft_link_compile_commands = defaultNullOpts.mkBool true '' cmake_soft_link_compile_commands = defaultNullOpts.mkBool true ''

View file

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

View file

@ -15,12 +15,12 @@ mkExtension {
Custom theme, will use your global theme by default. Custom theme, will use your global theme by default.
''; '';
path = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.loop.cwd()") '' path = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.uv.cwd()") ''
Directory to browse files from. Directory to browse files from.
`vim.fn.expanded` automatically. `vim.fn.expanded` automatically.
''; '';
cwd = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.loop.cwd()") '' cwd = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.uv.cwd()") ''
Directory to browse folders from. Directory to browse folders from.
`vim.fn.expanded` automatically. `vim.fn.expanded` automatically.
''; '';

View file

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

View file

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

View file

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

View file

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

View file

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