summaryrefslogtreecommitdiff
path: root/fnl/config.fnl
diff options
context:
space:
mode:
authoraktersnurra <gustaf@gustafrydholm.xyz>2026-04-16 15:10:52 +0200
committeraktersnurra <gustaf@gustafrydholm.xyz>2026-04-17 00:02:28 +0200
commit99a7ff44cdf70d028ef6aab26224f26f69ee528d (patch)
tree3bac13281fe000f0cc9a1823b6ccac856b0acf88 /fnl/config.fnl
parent83a7f3505a441f1c152229d50a3d6011951a82fc (diff)
Add fff and other nice things such as macrosHEADmaster
Diffstat (limited to 'fnl/config.fnl')
-rw-r--r--fnl/config.fnl6
1 files changed, 3 insertions, 3 deletions
diff --git a/fnl/config.fnl b/fnl/config.fnl
index 478bae2..80ed508 100644
--- a/fnl/config.fnl
+++ b/fnl/config.fnl
@@ -5,8 +5,6 @@
(local icons (require :settings.icons))
-(local {: apply-to-files} (require :util.load))
-
(local api (require :hotpot.api))
(local context (assert (api.context (vim.fn.stdpath :config))))
@@ -49,7 +47,9 @@
(require :settings)
(let [lazy (require :lazy)
plugins {}]
- (apply-to-files :/fnl/plugins (partial load-plugin plugins))
+ (each [fname type (vim.fs.dir (.. (vim.fn.stdpath :config) :/fnl/plugins))]
+ (when (= type :file)
+ (load-plugin plugins (fname:match "^(.*)%.fnl$"))))
(vim.keymap.set :n :<leader>y "<cmd>Lazy home<cr>" {:desc :Home})
(lazy.setup plugins opts)))