From a48ba3f7dfe35c7ca622e63a72574134788d68c7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 17 Jan 2023 00:08:43 +0100 Subject: Update key mappings --- fnl/plugins/tools/diffview.fnl | 5 ++++- fnl/plugins/tools/neogit.fnl | 4 +++- fnl/plugins/tools/orgmode.fnl | 9 +++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) (limited to 'fnl/plugins/tools') 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 :DiffviewFileHistory :desc :DiffviewFileHistory} + {1 :mx 2 "DiffviewOpen -uno" :desc :DiffviewOpen} + {1 :mz 2 :DiffviewClose :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 :Neogit :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 :OrgAgendaPrompt :desc "Open agenda prompt"} + {1 :gc 2 :OrgCapturePrompt :desc "Open capture prompt"} + {1 :gm + 2 "Telescope orgmode search_headings theme=dropdown" + :desc "Search headings"}]} -- cgit v1.2.3-70-g09d2