This commit is contained in:
Utshab Pyakurel 2025-05-09 12:01:53 +05:45 committed by GitHub
commit b13cdff0de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,8 @@ return setmetatable({
end
local command = k:gsub("_$", "!")
local f = function(...)
return vim.api.nvim_command(table.concat(vim.tbl_flatten {command, ...}, " "))
local args = vim.iter({command, ...}):flatten():totable()
return vim.api.nvim_command(table.concat(args, " "))
end
mt[k] = f
return f