summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/aktersnurra.fnl12
1 files changed, 11 insertions, 1 deletions
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 :<leader>y "<cmd>Lazy home<cr>" {:desc :Home})
- (lazy.setup {:import :plugins} opts)))
+ (lazy.setup plugins opts)))
(init)