diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-30 23:10:19 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-30 23:10:19 +0100 |
commit | f1b94063e11ddd5d61bc4dda919043cecf73c992 (patch) | |
tree | 51bed2351d87dc7fdb6387064e7263aa8774bd6c /fnl | |
parent | a52d588c33b4746b95e16c52e85f8b1bf373b371 (diff) |
Add loading of opts for lazy
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/lazy.fnl | 14 | ||||
-rw-r--r-- | fnl/init.fnl | 6 | ||||
-rw-r--r-- | fnl/plugins.fnl | 6 |
3 files changed, 23 insertions, 3 deletions
diff --git a/fnl/config/lazy.fnl b/fnl/config/lazy.fnl new file mode 100644 index 0000000..679993d --- /dev/null +++ b/fnl/config/lazy.fnl @@ -0,0 +1,14 @@ +;; Setup for +(module config.lazy {autoload {util config.util}}) + +(def- opts {:defaults {:lazy true :version "*"} + :install {:colorscheme [:no-clown-fiesta]} + :checker {:enabled true} + :performance {:rtp {:disabled_plugins [:gzip + :matchit + :matchparen + :netrwPlugin + :tarPlugin + :tohtml + :tutor + :zipPlugin]}}}) diff --git a/fnl/init.fnl b/fnl/init.fnl index 03005d7..0d827f5 100644 --- a/fnl/init.fnl +++ b/fnl/init.fnl @@ -1,5 +1,7 @@ ;; Load plugins with packer. (module init {require [settings config.autocmd config.cmd]}) -(let [lazy (require :lazy) plugins (require :plugins)] - (lazy.setup plugins)) +(let [lazy (require :lazy) + opts (require :config.lazy) + plugins (require :plugins)] + (lazy.setup plugins opts)) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 2d30b9f..a266ebd 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -2,6 +2,8 @@ [;; Color related plugins {1 :aktersnurra/no-clown-fiesta.nvim + :lazy false + :priority 1000 :config (fn [] (require :config.colorscheme))} {1 :norcalli/nvim-colorizer.lua @@ -74,9 +76,11 @@ (require :config.toggleterm))} ;; Search plugins {1 :nvim-telescope/telescope-fzf-native.nvim :build :make} - {1 :nvim-telescope/telescope-frecency.nvim :dependencies :tami5/sqlite.lua} {1 :nvim-telescope/telescope.nvim + :cmd :Telescope :dependencies [:nvim-lua/popup.nvim + :nvim-telescope/telescope-frecency.nvim + :tami5/sqlite.lua :nvim-lua/plenary.nvim :nvim-telescope/telescope-fzf-native.nvim :nvim-telescope/telescope-frecency.nvim |