summaryrefslogtreecommitdiff
path: root/fnl/plugins
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-07-13 22:56:27 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-07-13 22:56:27 +0200
commit6f141ccfbea494c30cf6a31d6c66abd1003d9813 (patch)
tree8641845d9d897fd792c7a56a967daf9c9554496d /fnl/plugins
parent94a169b5b754fbc02b6f34fe82c003d11e3c5dd4 (diff)
Refactor plugin init
Diffstat (limited to 'fnl/plugins')
-rw-r--r--fnl/plugins/init.fnl16
1 files changed, 10 insertions, 6 deletions
diff --git a/fnl/plugins/init.fnl b/fnl/plugins/init.fnl
index 66ec1e9..f451fc9 100644
--- a/fnl/plugins/init.fnl
+++ b/fnl/plugins/init.fnl
@@ -1,11 +1,15 @@
;; Load all plugins.
-(local plugins (let [plugins []
- path (.. (vim.fn.stdpath :config) :/fnl/plugins/editor)]
- (each [fname (vim.fs.dir path)]
- (let [fname (fname:match "^(.*)%.fnl$")]
- (table.insert plugins
- (require (.. :plugins.editor. fname)))))
+(local editor-plugins (let [plugins []
+ path (.. (vim.fn.stdpath :config)
+ :/fnl/plugins/editor)]
+ (each [fname (vim.fs.dir path)]
+ (let [fname (fname:match "^(.*)%.fnl$")]
+ (table.insert plugins
+ (require (.. :plugins.editor. fname)))))
+ plugins))
+
+(local plugins (let [plugins editor-plugins]
(table.insert plugins (require :plugins.lsp))
(table.insert plugins (require :plugins.core.hotpot))
plugins))