feat: use vim.uv everywhere instead of vim.loop

This commit is contained in:
Folke Lemaitre 2024-03-22 09:02:34 +01:00
parent 7f333f006f
commit 3a87c08cda
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
11 changed files with 23 additions and 23 deletions

View file

@ -23,7 +23,7 @@ return {
{
"<leader>fM",
function()
require("mini.files").open(vim.loop.cwd(), true)
require("mini.files").open(vim.uv.cwd(), true)
end,
desc = "Open mini.files (cwd)",
},

View file

@ -109,7 +109,7 @@ return {
-- stylua: ignore
keys = {
{ "<leader>tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
{ "<leader>tT", function() require("neotest").run.run(vim.loop.cwd()) end, desc = "Run All Test Files" },
{ "<leader>tT", function() require("neotest").run.run(vim.uv.cwd()) end, desc = "Run All Test Files" },
{ "<leader>tr", function() require("neotest").run.run() end, desc = "Run Nearest" },
{ "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last" },
{ "<leader>ts", function() require("neotest").summary.toggle() end, desc = "Toggle Summary" },

View file

@ -3,7 +3,7 @@ local xdg_config = vim.env.XDG_CONFIG_HOME or vim.env.HOME .. "/.config"
---@param path string
local function have(path)
return vim.loop.fs_stat(xdg_config .. "/" .. path) ~= nil
return vim.uv.fs_stat(xdg_config .. "/" .. path) ~= nil
end
return {