summaryrefslogtreecommitdiff
path: root/fnl/util/load.fnl
blob: fef9b6e1668a1ef84257ed76561757259551e72a (plain)
1
2
3
4
5
6
7
8
;; Load file with function

(λ load-and-apply [path f]
  (each [fname type (vim.fs.dir (.. (vim.fn.stdpath :config) path))]
    (when (= type :file)
      (f (fname:match "^(.*)%.fnl$")))))

{: load-and-apply}