summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-12-30 23:10:19 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-12-30 23:10:19 +0100
commitf1b94063e11ddd5d61bc4dda919043cecf73c992 (patch)
tree51bed2351d87dc7fdb6387064e7263aa8774bd6c
parenta52d588c33b4746b95e16c52e85f8b1bf373b371 (diff)
Add loading of opts for lazy
-rw-r--r--fnl/config/lazy.fnl14
-rw-r--r--fnl/init.fnl6
-rw-r--r--fnl/plugins.fnl6
-rw-r--r--lazy-lock.json32
4 files changed, 39 insertions, 19 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
diff --git a/lazy-lock.json b/lazy-lock.json
index 5673703..8e02b32 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -1,7 +1,7 @@
{
- "Comment.nvim": { "branch": "master", "commit": "45dc21a71ad1450606f5e98261badb28db59d74c" },
+ "Comment.nvim": { "branch": "master", "commit": "7bb563ff2d811a63b207e9de63e3e9c0877cb6d5" },
"LuaSnip": { "branch": "master", "commit": "5570fd797eae0790affb54ea669a150cad76db5d" },
- "SchemaStore.nvim": { "branch": "main", "commit": "ceebc0d0e5f6fe48c7739331e05c3843c07ade37" },
+ "SchemaStore.nvim": { "branch": "main", "commit": "358814d145fc53e0bc55151efab54e01ad0c8598" },
"alpha-nvim": { "branch": "main", "commit": "21a0f2520ad3a7c32c0822f943368dc063a569fb" },
"aniseed": { "branch": "master", "commit": "9892a40d4cf970a2916a984544b7f984fc12f55c" },
"auto-session": { "branch": "main", "commit": "c8b2f4048f846387361bd04cc185bf1aa7d2e3d1" },
@@ -12,34 +12,34 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-spell": { "branch": "master", "commit": "60584cb75e5e8bba5a0c9e4c3ab0791e0698bffa" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
- "diffview.nvim": { "branch": "main", "commit": "3812e296d3977a24db62f7c18025755b40968d3a" },
+ "diffview.nvim": { "branch": "main", "commit": "18f83302f71889b39403919b8be00d7244d1fcfc" },
"flit.nvim": { "branch": "main", "commit": "be110f9814a45788d10537fd59b3c76d956bb7ad" },
"friendly-snippets": { "branch": "main", "commit": "1a6a02350568d6830bcfa167c72f9b6e75e454ae" },
"gitsigns.nvim": { "branch": "main", "commit": "2ab3bdf0a40bab53033048c6be75bda86316b55d" },
"harpoon": { "branch": "master", "commit": "21d0d1bfa3000e4384740bfaefa0ebc51c773786" },
- "lazy.nvim": { "branch": "main", "commit": "bb53b8473cd065dc467853222ee3462739ab16fa" },
- "leap.nvim": { "branch": "main", "commit": "a5c9504290832e6bdbbb6265fd1ff02fc6485d20" },
+ "lazy.nvim": { "branch": "main", "commit": "45d669f61c8fc239712e794e1e2c5af1f737ee0a" },
+ "leap.nvim": { "branch": "main", "commit": "e0145906c5f004b23eb6ec876fad55ffd3382ec9" },
"lir.nvim": { "branch": "master", "commit": "84af01547e51e15fc97e878330414385eeb825e8" },
"lspkind-nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
"lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" },
- "lualine.nvim": { "branch": "master", "commit": "fffbcb829288c3ca366f17cdb8d46aefb5c1d6f3" },
- "mason-lspconfig.nvim": { "branch": "main", "commit": "31d8ed0dd3daf6cc64e35d710a190b64080bdc86" },
+ "lualine.nvim": { "branch": "master", "commit": "32a7382a75a52e8ad05f4cec7eeb8bbfbe80d461" },
+ "mason-lspconfig.nvim": { "branch": "main", "commit": "aa25b4153d2f2636c3b3a8c8360349d2b29e7ae3" },
"mason-null-ls.nvim": { "branch": "main", "commit": "4480bc59b72866376fc2f83048a932fa598d89a8" },
- "mason.nvim": { "branch": "main", "commit": "21a2475da458e97be798bdc9261da24460da5c65" },
+ "mason.nvim": { "branch": "main", "commit": "1592493e3406c271e9128b4d424731e25f1ff2a1" },
"minibar.nvim": { "branch": "master", "commit": "cd559b1c54d7603975300635ac908965d912a42c" },
"neogit": { "branch": "master", "commit": "0d6002c6af432343937283fb70791fc76fa7227c" },
- "nlsp-settings.nvim": { "branch": "main", "commit": "2f3bf45aeb7497155b5a45a80d9fa7795209ddde" },
+ "nlsp-settings.nvim": { "branch": "main", "commit": "820e32568e073827987046e3073aa69df629232f" },
"no-clown-fiesta.nvim": { "branch": "master", "commit": "a7de377d8d3087581958f84d982b616fc93ca471" },
- "null-ls.nvim": { "branch": "main", "commit": "b26851b3e7ac1c0c85666f8a74e36aef2acb89c6" },
+ "null-ls.nvim": { "branch": "main", "commit": "647a1eeeefc43ce15d941972642210637c370471" },
"nvim-autopairs": { "branch": "master", "commit": "03580d758231956d33c8dd91e2be195106a79fa4" },
"nvim-bqf": { "branch": "main", "commit": "b418b0a241d36509196944a6f6bee886c775d54f" },
"nvim-bufdel": { "branch": "main", "commit": "a60b3531e5bd56f8602acb4ba7f5b2eeb782d54b" },
- "nvim-cmp": { "branch": "main", "commit": "d09b0c396aaa078cdfe78316ec06940971136e85" },
+ "nvim-cmp": { "branch": "main", "commit": "c49ad26e894e137e401b1d294948c46327877eaf" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
- "nvim-lspconfig": { "branch": "master", "commit": "a63d2c75c6880d45209baff596939343e8a431fd" },
+ "nvim-lspconfig": { "branch": "master", "commit": "9c73b57ed03ad0a906e2cdc2fc348bf86ae53e3a" },
"nvim-spectre": { "branch": "master", "commit": "68ea562b485b6593e325e7916c3bd6e833d433e7" },
- "nvim-surround": { "branch": "main", "commit": "6aafeeda19a98768d1c17ff6dde5548bc77a1a2d" },
- "nvim-treesitter": { "branch": "master", "commit": "7c9ddb72d198d45895d73bc7495e1b7e9627f6ca" },
+ "nvim-surround": { "branch": "main", "commit": "64e21061953102b19bbb22e824fbb96054782799" },
+ "nvim-treesitter": { "branch": "master", "commit": "ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "32d9627123321db65a4f158b72b757bcaef1a3f4" },
"nvim-web-devicons": { "branch": "master", "commit": "05e1072f63f6c194ac6e867b567e6b437d3d4622" },
"nvim-window-picker": { "branch": "main", "commit": "5902827d0e338890a22849e2f18dc80d1cc1a8db" },
@@ -50,10 +50,10 @@
"session-lens": { "branch": "main", "commit": "b15e36782d01abacf6cd44e12f3292632064ab91" },
"sqlite.lua": { "branch": "master", "commit": "53cac3fdb5f5e4e63e243232b6eccf3c764ae18a" },
"stay-in-place.nvim": { "branch": "main", "commit": "c7aa6caad8a0e5181abbf83f50d9d8c7d06ddd43" },
- "telescope-frecency.nvim": { "branch": "master", "commit": "10771fdb7b4c4b59f2b5c1e8757b0379e1314659" },
+ "telescope-frecency.nvim": { "branch": "master", "commit": "62cbd4e7f55fb6de2b8081087ce97026022ffcd2" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" },
"telescope-orgmode.nvim": { "branch": "main", "commit": "eabff061c3852a9aa94e672a7d2fa4a1ef63f9e2" },
- "telescope.nvim": { "branch": "master", "commit": "e960efa60e97df58e089b00270f09d60f27202c8" },
+ "telescope.nvim": { "branch": "master", "commit": "a606bd10c79ec5989c76c49cc6f736e88b63f0da" },
"toggleterm.nvim": { "branch": "main", "commit": "b02a1674bd0010d7982b056fd3df4f717ff8a57a" },
"trim.nvim": { "branch": "master", "commit": "909150606eab44979eb9595145796f5bcb067955" },
"trouble.nvim": { "branch": "main", "commit": "897542f90050c3230856bc6e45de58b94c700bbf" },