mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-18 06:51: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:
parent
081bcc930f
commit
a1cda59a3a
8 changed files with 12 additions and 12 deletions
|
|
@ -33,7 +33,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
'';
|
||||
|
||||
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 ''
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ in
|
|||
}
|
||||
{
|
||||
type = "dir";
|
||||
header = [{__raw = "' MRU' .. vim.loop.cwd()";}];
|
||||
header = [{__raw = "' MRU' .. vim.uv.cwd()";}];
|
||||
}
|
||||
{
|
||||
type = "sessions";
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ mkExtension {
|
|||
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.
|
||||
`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.
|
||||
`vim.fn.expanded` automatically.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -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