summaryrefslogtreecommitdiff
path: root/fnl/config/cmd.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
commit68719ee058a302a4bda697b6a39ebfd5fefb06fc (patch)
tree055165e0b3edeeb2ea36da6e2eee9e851ca7cc0b /fnl/config/cmd.fnl
parent86fc163e549d78136855ac2b45e91ffb2f43affc (diff)
Refactor loading of plugins
Diffstat (limited to 'fnl/config/cmd.fnl')
-rw-r--r--fnl/config/cmd.fnl28
1 files changed, 14 insertions, 14 deletions
diff --git a/fnl/config/cmd.fnl b/fnl/config/cmd.fnl
index 735bbc4..1ae9b58 100644
--- a/fnl/config/cmd.fnl
+++ b/fnl/config/cmd.fnl
@@ -3,85 +3,85 @@
(nvim.create_user_command :OrgAgendaPrompt
(lambda []
- (let [orgmode (util.prequire :orgmode)]
+ (let [orgmode (require :orgmode)]
(orgmode.action :agenda.prompt)))
{:nargs 0})
(nvim.create_user_command :OrgCapturePrompt
(lambda []
- (let [orgmode (util.prequire :orgmode)]
+ (let [orgmode (require :orgmode)]
(orgmode.action :capture.prompt)))
{:nargs 0})
(nvim.create_user_command :CommentNormal
(lambda []
- (let [comment-api (util.prequire :Comment.api)]
+ (let [comment-api (require :Comment.api)]
(comment-api.toggle.linewise.current)))
{:nargs 0})
(nvim.create_user_command :CommentVisual
(lambda []
- (let [comment-api (util.prequire :Comment.api)]
+ (let [comment-api (require :Comment.api)]
(comment-api.toggle.linewise (vim.fn.visualmode))))
{:nargs 0})
(nvim.create_user_command :HarpoonAdd
(lambda []
- (let [harpoon (util.prequire :harpoon.mark)]
+ (let [harpoon (require :harpoon.mark)]
(harpoon.add_file)))
{:nargs 0})
(nvim.create_user_command :HarpoonNext
(lambda []
- (let [harpoon (util.prequire :harpoon.ui)]
+ (let [harpoon (require :harpoon.ui)]
(harpoon.nav_next)))
{:nargs 0})
(nvim.create_user_command :HarpoonPrev
(lambda []
- (let [harpoon (util.prequire :harpoon.ui)]
+ (let [harpoon (require :harpoon.ui)]
(harpoon.nav_prev)))
{:nargs 0})
(nvim.create_user_command :HarpoonUI
(lambda []
- (let [harpoon (util.prequire :harpoon.ui)]
+ (let [harpoon (require :harpoon.ui)]
(harpoon.toggle_quick_menu)))
{:nargs 0})
(nvim.create_user_command :Replace
(lambda []
- (let [spectre (util.prequire :spectre)]
+ (let [spectre (require :spectre)]
(spectre.open)))
{:nargs 0})
(nvim.create_user_command :ReplaceWord
(lambda []
- (let [spectre (util.prequire :spectre)]
+ (let [spectre (require :spectre)]
(spectre.open_visual {:select_word true})))
{:nargs 0})
(nvim.create_user_command :ReplaceInBuf
(lambda []
- (let [spectre (util.prequire :spectre)]
+ (let [spectre (require :spectre)]
(spectre.open_file_search)))
{:nargs 0})
(nvim.create_user_command :RestoreSession
(lambda []
- (let [persistence (util.prequire :persistence)]
+ (let [persistence (require :persistence)]
(persistence.load)))
{:nargs 0})
(nvim.create_user_command :RestoreLastSession
(lambda []
- (let [persistence (util.prequire :persistence)]
+ (let [persistence (require :persistence)]
(persistence.load {:last true})))
{:nargs 0})
(nvim.create_user_command :IgnoreSession
(lambda []
- (let [persistence (util.prequire :persistence)]
+ (let [persistence (require :persistence)]
(persistence.stop)))
{:nargs 0})