blob: 58816348e22e96fd0a63b617e879d5062208548a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
(λ create-user-cmds [user-cmds]
(each [_ user-cmd (ipairs user-cmds)]
(match user-cmd
[event cmd opts] (vim.api.nvim_create_user_command event cmd opts))))
(λ create-auto-cmds [auto-cmds]
(each [_ auto-cmd (ipairs auto-cmds)]
(match auto-cmd
[event opts] (vim.api.nvim_create_autocmd event opts))))
{: create-user-cmds : create-auto-cmds}
|