Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Sep 23, 2024
1 parent 7dd000b commit bb1d89d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/vusted/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local clears = {
if vim.api.nvim_exec2 then
return vim.api.nvim_exec2(cmd, { output = true }).output
end
---@diagnostic disable-next-line: deprecated
return vim.api.nvim_exec(cmd, true)
end
local groups = vim.split(exec("augroup"), "%s+", { trimempty = true })
Expand Down
5 changes: 4 additions & 1 deletion lua/vusted/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ return function()
-- for loading test target
vim.o.runtimepath = vim.fn.getcwd() .. "," .. vim.o.runtimepath

local argv = vim.fn.argv()
---@cast argv string[]

-- NOTICE: replace global arg
arg = vim.fn.argv() -- luacheck: ignore
arg = argv
vim.cmd("%argdelete")

if vim.tbl_contains(arg, "--version") then
Expand Down

0 comments on commit bb1d89d

Please sign in to comment.