Skip to content

Commit 095aca9

Browse files
authored
Merge pull request #14 from pyrho/fix/tbl_flatten-deprecation
fix: replace vim.tbl_flatten with vim.iter
2 parents 891adc0 + 25137a1 commit 095aca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/dark_notify.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function nvim_create_augroups(definitions)
1212
-- if type(def) == 'table' and type(def[#def]) == 'function' then
1313
-- def[#def] = lua_callback(def[#def])
1414
-- end
15-
local command = table.concat(vim.tbl_flatten{'autocmd', def}, ' ')
15+
local command = table.concat(vim.iter({'autocmd', def}):flatten():totable() , ' ')
1616
vim.api.nvim_command(command)
1717
end
1818
vim.api.nvim_command('augroup END')

0 commit comments

Comments
 (0)