From c2dcd4d897efdb475451a8a10d7085aa9a1f097e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 15 May 2024 00:43:44 +0200 Subject: Update loading of plugins --- fnl/aktersnurra.fnl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'fnl') diff --git a/fnl/aktersnurra.fnl b/fnl/aktersnurra.fnl index e8106d5..00367be 100644 --- a/fnl/aktersnurra.fnl +++ b/fnl/aktersnurra.fnl @@ -1,14 +1,4 @@ ;; 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]} @@ -48,6 +38,6 @@ (require :settings) (let [lazy (require :lazy)] (vim.keymap.set :n :y "Lazy home" {:desc :Home}) - (lazy.setup plugins opts))) + (lazy.setup {:import :plugins} opts))) (init) -- cgit v1.2.3-70-g09d2