mirror of
https://github.com/norcalli/nvim-colorizer.lua.git
synced 2026-09-10 07:06:14 -04:00
Merge 56290aadfa into a065833f35
This commit is contained in:
commit
01c7f7f4eb
|
|
@ -93,7 +93,9 @@ return setmetatable({
|
|||
end
|
||||
local command = k:gsub("_$", "!")
|
||||
local f = function(...)
|
||||
return vim.api.nvim_command(table.concat(vim.tbl_flatten {command, ...}, " "))
|
||||
local cmd = {command, ...}
|
||||
cmd = vim.iter and vim.iter(cmd):flatten():totable() or vim.tbl_flatten(cmd)
|
||||
return vim.api.nvim_command(table.concat(cmd, " "))
|
||||
end
|
||||
mt[k] = f
|
||||
return f
|
||||
|
|
|
|||
Loading…
Reference in a new issue