diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-05-15 00:43:44 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-05-15 00:43:44 +0200 |
commit | c2dcd4d897efdb475451a8a10d7085aa9a1f097e (patch) | |
tree | 04b8de562e35ecbc1a830d48f38d37cfbf2696b4 /fnl | |
parent | ba01a60c246aff6cd7b7655f7edc563b9d47893a (diff) |
Update loading of plugins
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/aktersnurra.fnl | 12 |
1 files changed, 1 insertions, 11 deletions
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 :<leader>y "<cmd>Lazy home<cr>" {:desc :Home}) - (lazy.setup plugins opts))) + (lazy.setup {:import :plugins} opts))) (init) |