diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 01:12:42 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 01:12:42 +0200 |
commit | 8ad2f8c9afb308e7a8a1133f578e3352442f770a (patch) | |
tree | a7a05ed7c472f186d6380dd918e2318d6d951330 /fnl/plugins/editor/orgmode.fnl | |
parent | fd69ec549594d53b9503212d93a9a44f10eef478 (diff) |
Restructure plugin configs
Diffstat (limited to 'fnl/plugins/editor/orgmode.fnl')
-rw-r--r-- | fnl/plugins/editor/orgmode.fnl | 16 |
1 files changed, 7 insertions, 9 deletions
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 :<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"}]) + (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 :<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"}]} +{1 :nvim-orgmode/orgmode : config : init :event :BufReadPost : keys} |