diff --git a/lua/bootstrap.lua b/lua/bootstrap.lua index 57f651f..e7bf955 100644 --- a/lua/bootstrap.lua +++ b/lua/bootstrap.lua @@ -26,7 +26,7 @@ local utils = require("utils") -- Install lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then +if not vim.uv.fs_stat(lazypath) then if utils.os_name == "Linux" then utils.assert_any_installed({ "curl", "wget", }) utils.assert_installed("unzip") diff --git a/lua/pytest.lua b/lua/pytest.lua index 02f4349..9f02bfd 100644 --- a/lua/pytest.lua +++ b/lua/pytest.lua @@ -59,7 +59,7 @@ function M.run(args) dap.run(config) -- List of events described at https://microsoft.github.io/debug-adapter-protocol/specification#Events -- Also see :h dap-extensions - dap.listeners.after["event_initialized"]["pytest.lua"] = function (session, body) + dap.listeners.after["event_initialized"]["pytest.lua"] = function (_, _) dap.set_exception_breakpoints({ "userUnhandled", }) end end diff --git a/lua/utils.lua b/lua/utils.lua index 4ab3a9f..5609cdd 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -16,7 +16,7 @@ local M = {} -M.os_name = vim.loop.os_uname().sysname +M.os_name = vim.uv.os_uname().sysname --- Check that an executable is available --- @param exe string: Array to look for