diff options
Diffstat (limited to 'fnl/util')
| -rw-r--r-- | fnl/util/cmds.fnl | 11 | ||||
| -rw-r--r-- | fnl/util/load.fnl | 8 |
2 files changed, 0 insertions, 19 deletions
diff --git a/fnl/util/cmds.fnl b/fnl/util/cmds.fnl deleted file mode 100644 index 5881634..0000000 --- a/fnl/util/cmds.fnl +++ /dev/null @@ -1,11 +0,0 @@ -(λ 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} diff --git a/fnl/util/load.fnl b/fnl/util/load.fnl deleted file mode 100644 index afc6cf1..0000000 --- a/fnl/util/load.fnl +++ /dev/null @@ -1,8 +0,0 @@ -;; Load file with function - -(λ apply-to-files [path f] - (each [fname type (vim.fs.dir (.. (vim.fn.stdpath :config) path))] - (when (= type :file) - (f (fname:match "^(.*)%.fnl$"))))) - -{: apply-to-files} |