diff --git a/lua/colorizer/nvim.lua b/lua/colorizer/nvim.lua index c51d2ca..97ef72f 100644 --- a/lua/colorizer/nvim.lua +++ b/lua/colorizer/nvim.lua @@ -93,7 +93,7 @@ return setmetatable({ end local command = k:gsub("_$", "!") local f = function(...) - return vim.api.nvim_command(table.concat(vim.tbl_flatten {command, ...}, " ")) + return vim.api.nvim_command(table.concat(vim.iter({command, ...}):flatten():totable(), " ")) end mt[k] = f return f