ref(nvim): shorter macro name (require-then! -> req-do!)

This commit is contained in:
Léana 江 2024-01-28 14:05:27 +01:00 committed by Léana 江
parent 2cb483e188
commit 61692f7fde
14 changed files with 49 additions and 50 deletions

View file

@ -1,4 +1,4 @@
(import-macros {: require-then!} :macros)
(import-macros {: req-do!} :macros)
(let [lazypath (.. (vim.fn.stdpath :data) :/lazy/lazy.nvim)]
(when (not (vim.loop.fs_stat lazypath))
@ -25,7 +25,7 @@
{1 :numToStr/Comment.nvim :opts {}}
{1 :ggandor/leap.nvim
:dependencies :tpope/vim-repeat
:config #(require-then! :leap #($.add_default_mappings))}
:config #(req-do! :leap #($.add_default_mappings))}
{1 :kevinhwang91/nvim-ufo
:dependencies :kevinhwang91/promise-async}
{1 :wintermute-cell/gitignore.nvim
@ -110,4 +110,4 @@
:f3fora/cmp-spell
:mrcjkb/haskell-snippets.nvim]}]
opts {:performance {:rtp {:reset false}}}]
(require-then! :lazy #($.setup plugins opts)))
(req-do! :lazy #($.setup plugins opts)))