We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 891adc0 + 25137a1 commit 095aca9Copy full SHA for 095aca9
lua/dark_notify.lua
@@ -12,7 +12,7 @@ function nvim_create_augroups(definitions)
12
-- if type(def) == 'table' and type(def[#def]) == 'function' then
13
-- def[#def] = lua_callback(def[#def])
14
-- end
15
- local command = table.concat(vim.tbl_flatten{'autocmd', def}, ' ')
+ local command = table.concat(vim.iter({'autocmd', def}):flatten():totable() , ' ')
16
vim.api.nvim_command(command)
17
end
18
vim.api.nvim_command('augroup END')
0 commit comments