From 8760754a8229465308c97d992897ed5fc23df667 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 15 May 2024 01:33:26 +0200 Subject: Revert 1 commits c2dcd4d 'Update loading of plugins' --- fnl/aktersnurra.fnl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fnl/aktersnurra.fnl b/fnl/aktersnurra.fnl index 00367be..e8106d5 100644 --- a/fnl/aktersnurra.fnl +++ b/fnl/aktersnurra.fnl @@ -1,4 +1,14 @@ ;; Load plugins with lazy. + +(local plugins (let [plugins [] + path (.. (vim.fn.stdpath :config) :/fnl/plugins)] + (each [fname (vim.fs.dir path)] + (let [fname (fname:match "^(.*)%.fnl$")] + (if (not= fname nil) + (table.insert plugins (require (.. :plugins. fname)))))) + (table.insert plugins (require :plugins.lsp)) + plugins)) + (local icons (require :settings.icons)) (local opts {:install {:colorscheme [:no-clown-fiesta]} @@ -38,6 +48,6 @@ (require :settings) (let [lazy (require :lazy)] (vim.keymap.set :n :y "Lazy home" {:desc :Home}) - (lazy.setup {:import :plugins} opts))) + (lazy.setup plugins opts))) (init) -- cgit v1.2.3-70-g09d2