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,5 +1,5 @@
(import-macros {: map!} :hibiscus.vim)
(import-macros {: require-then!} :macros)
(import-macros {: req-do!} :macros)
(let [config {:on_attach (fn [bufno]
(let [gs package.loaded.gitsigns]
@ -28,4 +28,4 @@
(map! [n :buffer] :<leader>pd gs.toggle_deleted)
;; Text object
(map! [ox] :ih ":<C-U>Gitsigns select_hunk<CR>")))}]
(require-then! :gitsigns #($.setup config)))
(req-do! :gitsigns #($.setup config)))