lint: fix typechecking
This commit is contained in:
parent
6c48ac7dc6
commit
2bd71dda88
1 changed files with 2 additions and 1 deletions
|
|
@ -632,13 +632,14 @@ M.select = function(opts, callback)
|
||||||
cmd = "buffer"
|
cmd = "buffer"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
---@diagnostic disable-next-line: param-type-mismatch
|
||||||
local ok, err = pcall(vim.cmd, {
|
local ok, err = pcall(vim.cmd, {
|
||||||
cmd = cmd,
|
cmd = cmd,
|
||||||
args = { filebufnr },
|
args = { filebufnr },
|
||||||
mods = mods,
|
mods = mods,
|
||||||
})
|
})
|
||||||
-- Ignore swapfile errors
|
-- Ignore swapfile errors
|
||||||
if not ok and not err:match("^Vim:E325:") then
|
if not ok and err and not err:match("^Vim:E325:") then
|
||||||
vim.api.nvim_echo({ { err, "Error" } }, true, {})
|
vim.api.nvim_echo({ { err, "Error" } }, true, {})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue