From 99a7ff44cdf70d028ef6aab26224f26f69ee528d Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Thu, 16 Apr 2026 15:10:52 +0200 Subject: Add fff and other nice things such as macros --- fnl/util/cmds.fnl | 11 ----------- fnl/util/load.fnl | 8 -------- 2 files changed, 19 deletions(-) delete mode 100644 fnl/util/cmds.fnl delete mode 100644 fnl/util/load.fnl (limited to 'fnl/util') 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} -- cgit v1.2.3-70-g09d2