summaryrefslogtreecommitdiff
path: root/fnl/plugins/init.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 14:21:05 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 14:21:05 +0100
commitba5400946e9ee19dce851e91a36bb1670d265233 (patch)
treed0b80efd53111ee097bb52763097be22adfb04cf /fnl/plugins/init.fnl
parentfdff316fff423dd37a093ce1fff1ab289533305c (diff)
Fix loading of plugins
Diffstat (limited to 'fnl/plugins/init.fnl')
-rw-r--r--fnl/plugins/init.fnl10
1 files changed, 10 insertions, 0 deletions
diff --git a/fnl/plugins/init.fnl b/fnl/plugins/init.fnl
new file mode 100644
index 0000000..470776e
--- /dev/null
+++ b/fnl/plugins/init.fnl
@@ -0,0 +1,10 @@
+;; Load all plugins.
+
+(let [plugins []
+ path (.. (vim.fn.stdpath :config) :/fnl/plugins)]
+ (each [fname (vim.fs.dir path)]
+ (let [fname (fname:match "^(.*)%.fnl$")]
+ (if (and (not= fname nil) (not= fname :init))
+ (table.insert plugins (require (.. :plugins. fname))))))
+ (table.insert plugins (require :plugins.lsp))
+ plugins)