Skip to content

Commit 0fb62a7

Browse files
authored
Merge pull request #50 from Badhi/bhashith/replace_deprec
Replaces vim.tbl_flatten with vim.iter():flatten():totable()
2 parents d585033 + 77a2132 commit 0fb62a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/nt-cpp-tools.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ local function setup_commands(commands)
1111
command_name,
1212
f_args
1313
)
14-
local parts = vim.tbl_flatten {
14+
local parts = vim.iter({
1515
"command!",
1616
def.args,
1717
command_name,
1818
call_fn,
19-
}
19+
}):flatten():totable()
2020
vim.api.nvim_command(table.concat(parts, " "))
2121
end
2222
end

0 commit comments

Comments
 (0)