From 152fd9d787c7433cad95795992e444250cb83216 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/config.fnl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'fnl/config.fnl') diff --git a/fnl/config.fnl b/fnl/config.fnl index 478bae2..657c954 100644 --- a/fnl/config.fnl +++ b/fnl/config.fnl @@ -5,10 +5,9 @@ (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)))) +(local context + (let [api (require :hotpot.api)] + (assert (api.context (vim.fn.stdpath :config))))) (local opts {:install {:colorscheme [:no-clown-fiesta]} :debug false @@ -49,7 +48,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 :y "Lazy home" {:desc :Home}) (lazy.setup plugins opts))) -- cgit v1.2.3-70-g09d2