From 8ad2f8c9afb308e7a8a1133f578e3352442f770a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 01:12:42 +0200 Subject: Restructure plugin configs --- fnl/plugins/editor/orgmode.fnl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'fnl/plugins/editor/orgmode.fnl') diff --git a/fnl/plugins/editor/orgmode.fnl b/fnl/plugins/editor/orgmode.fnl index 5324b8d..954e7d4 100644 --- a/fnl/plugins/editor/orgmode.fnl +++ b/fnl/plugins/editor/orgmode.fnl @@ -1,5 +1,11 @@ ;; Orgmode for nvim. +(local 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"}]) + (local user-cmds [[:OrgAgendaPrompt (lambda [] (let [orgmode (require :orgmode)] @@ -40,12 +46,4 @@ (orgmode.setup_ts_grammar) (orgmode.setup opts))) -{1 :nvim-orgmode/orgmode - : config - : init - :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"}]} +{1 :nvim-orgmode/orgmode : config : init :event :BufReadPost : keys} -- cgit v1.2.3-70-g09d2