summaryrefslogtreecommitdiff
path: root/fnl/plugins/tools
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-17 00:08:43 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-17 00:08:43 +0100
commita48ba3f7dfe35c7ca622e63a72574134788d68c7 (patch)
tree0675dc0f5e950c8739b63da29568d083e9c1d057 /fnl/plugins/tools
parent10b175f252104458d7478d8a2822818850cfdf92 (diff)
Update key mappings
Diffstat (limited to 'fnl/plugins/tools')
-rw-r--r--fnl/plugins/tools/diffview.fnl5
-rw-r--r--fnl/plugins/tools/neogit.fnl4
-rw-r--r--fnl/plugins/tools/orgmode.fnl9
3 files changed, 14 insertions, 4 deletions
diff --git a/fnl/plugins/tools/diffview.fnl b/fnl/plugins/tools/diffview.fnl
index 9978c2e..c004199 100644
--- a/fnl/plugins/tools/diffview.fnl
+++ b/fnl/plugins/tools/diffview.fnl
@@ -2,4 +2,7 @@
{1 :sindrets/diffview.nvim
:cmd [:DiffviewFileHistory :DiffviewOpen]
- :config true}
+ :config true
+ :keys [{1 :md 2 :<cmd>DiffviewFileHistory<cr> :desc :DiffviewFileHistory}
+ {1 :mx 2 "<cmd>DiffviewOpen -uno<cr>" :desc :DiffviewOpen}
+ {1 :mz 2 :<cmd>DiffviewClose<cr> :desc :DiffviewClose}]}
diff --git a/fnl/plugins/tools/neogit.fnl b/fnl/plugins/tools/neogit.fnl
index b7c1633..9bd3afd 100644
--- a/fnl/plugins/tools/neogit.fnl
+++ b/fnl/plugins/tools/neogit.fnl
@@ -2,5 +2,7 @@
{1 :TimUntersberger/neogit
:cmd :Neogit
+ :config true
:dependencies [:nvim-lua/plenary.nvim]
- :config true}
+ :keys [{1 :mn 2 :<cmd>Neogit<cr> :desc :Neogit}]
+}
diff --git a/fnl/plugins/tools/orgmode.fnl b/fnl/plugins/tools/orgmode.fnl
index 99e55be..be96fd7 100644
--- a/fnl/plugins/tools/orgmode.fnl
+++ b/fnl/plugins/tools/orgmode.fnl
@@ -19,6 +19,11 @@
(orgmode.setup opts)))
{1 :nvim-orgmode/orgmode
- :event :BufReadPost
:config (fn []
- (setup))}
+ (setup))
+ :event :BufReadPost
+ :keys [{1 :ga 2 :<cmd>OrgAgendaPrompt<cr> :desc "Open agenda prompt"}
+ {1 :gc 2 :<cmd>OrgCapturePrompt<cr> :desc "Open capture prompt"}
+ {1 :gm
+ 2 "<cmd>Telescope orgmode search_headings theme=dropdown<cr>"
+ :desc "Search headings"}]}