about summary refs log tree commit diff
path: root/fnl/nvrc/pack.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-01 20:43:55 +0900
committersefidel <contact@sefidel.net>2023-10-01 20:43:55 +0900
commit22476d08ae70f91bfd5fed6cead99f5a7b8e011d (patch)
tree5b9843c859731186a82a1e390d98623f33080fb8 /fnl/nvrc/pack.fnl
parentc74dcd3f028d89f389e0430fd524ca290300dfdf (diff)
downloadnvimrc-22476d08ae70f91bfd5fed6cead99f5a7b8e011d.tar.gz
nvimrc-22476d08ae70f91bfd5fed6cead99f5a7b8e011d.zip
feat(pack)!: use lazy.nvim
This commit replaces packer.nvim with lazy.nvim to make the lazy-load
based package management painless, with lazy.nvim's automatic module
lazy-loading and lockfile support.

Squashed commit of the following:

commit 4b972111b3f91f0b385a6d58640c7751ff8ecd22
Author: sefidel <contact@sefidel.net>
Date:   Sun Oct 1 20:43:42 2023 +0900

    wip: remove leftover mentions to packer.nvim

commit 536106e405b9ec20084b9735a937e80699cdcbb8
Author: sefidel <contact@sefidel.net>
Date:   Sun Oct 1 20:33:44 2023 +0900

    wip: get rid of luarocks macros

commit 6cf35948e4a3081446a9c9414bf350661444df72
Author: sefidel <contact@sefidel.net>
Date:   Sun Oct 1 20:18:51 2023 +0900

    wip: working lazy.nvim checkpoint

commit 407056efd6de976b4d91162c70e3b49cca17664e
Author: sefidel <contact@sefidel.net>
Date:   Sun Oct 1 13:38:43 2023 +0900

    wip: replace packer.nvim with lazy.nvim
Diffstat (limited to 'fnl/nvrc/pack.fnl')
-rw-r--r--fnl/nvrc/pack.fnl30
1 files changed, 15 insertions, 15 deletions
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index f0c2104..15481b3 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -1,26 +1,24 @@
 (import-macros {: pack : pack! : unpack!} :nvrc.macro.pack)
 (import-macros {: setv!} :nvrc.macro.set)
 
-(pack! :wbthomason/packer.nvim)
+(pack! :folke/lazy.nvim)
 (pack! :rktjmp/hotpot.nvim)
 
-(pack! :nanotech/jellybeans.vim {:config "require('nvrc.colors').apply('jellybeans')"})
+(pack! :nanotech/jellybeans.vim {:config #((. (require :nvrc.colors) :apply) :jellybeans)})
 (pack! :kvrohit/rasmus.nvim)
 (pack! :nvim-treesitter/nvim-treesitter {:req :treesitter
-                                         :requires [(pack :nvim-treesitter/nvim-treesitter-refactor {:after :nvim-treesitter})
-                                                    (pack :nvim-treesitter/nvim-treesitter-textobjects {:after :nvim-treesitter})]})
+                                         :dependencies [(pack :nvim-treesitter/nvim-treesitter-refactor)
+                                                        (pack :nvim-treesitter/nvim-treesitter-textobjects)]})
 
 (pack! :antoinemadec/FixCursorHold.nvim)
 (pack! :justinmk/vim-dirvish)
 
 (pack! :neovim/nvim-lspconfig {:req :lspconfig
-                               :requires [(pack :hrsh7th/cmp-nvim-lsp {:after :nvim-cmp})
-                                          (pack :j-hui/fidget.nvim {:req :fidget :after :nvim-lspconfig :branch :legacy}) ; FIXME: Compatibility during rewrite
-                                          (pack :hrsh7th/cmp-nvim-lsp-signature-help {:after :cmp-nvim-lsp})]})
-(pack! :simrat39/rust-tools.nvim {:req :rust :ft :rust :requires [(pack :nvim-lua/plenary.nvim)]})
-(pack! :p00f/clangd_extensions.nvim {:req :clangd :ft [:c :cpp :objc :objcpp] :module :clangd_extensions})
-(pack! :mfussenegger/nvim-dap {:req :dap :requires [(pack :nvim-lua/plenary.nvim)]})
-(pack! :rcarriga/nvim-dap-ui {:init :dapui :requires [(pack :mfussenegger/nvim-dap)]})
+                               :dependencies [(pack :j-hui/fidget.nvim {:req :fidget :branch :legacy})]})
+(pack! :simrat39/rust-tools.nvim {:req :rust :ft :rust :dependencies [(pack :nvim-lua/plenary.nvim)]})
+(pack! :p00f/clangd_extensions.nvim {:req :clangd :ft [:c :cpp :objc :objcpp]})
+(pack! :mfussenegger/nvim-dap {:req :dap :dependencies [(pack :nvim-lua/plenary.nvim)
+                                                        (pack :rcarriga/nvim-dap-ui {:init :dapui})]})
 (pack! :gpanders/editorconfig.nvim)
 (pack! :stefandtw/quickfix-reflector.vim {:ft :qf})
 (pack! :tpope/vim-fugitive)
@@ -28,10 +26,12 @@
 (pack! :tpope/vim-sleuth)
 
 (pack! :hrsh7th/nvim-cmp {:req :cmp :event :BufEnter
-                          :requires [(pack :L3MON4D3/LuaSnip {:module :luasnip})
-                                     (pack :lukas-reineke/cmp-under-comparator {:module :cmp-under-comparator})]})
-(pack! :numToStr/Comment.nvim {:module :Comment :init :Comment})
-(pack! :ibhagwan/fzf-lua {:req :fzf :module :fzf-lua})
+                          :dependencies [(pack :L3MON4D3/LuaSnip)
+                                         (pack :lukas-reineke/cmp-under-comparator)
+                                         (pack :hrsh7th/cmp-nvim-lsp {:after :nvim-cmp})
+                                         (pack :hrsh7th/cmp-nvim-lsp-signature-help)]})
+(pack! :numToStr/Comment.nvim {:init :Comment})
+(pack! :ibhagwan/fzf-lua {:req :fzf})
 (pack! :ggandor/leap.nvim {:req :leap})
 (pack! :windwp/nvim-autopairs {:req :autopairs})