From fa266335036aba72372796468ddedaeb06bc3465 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 21 Feb 2024 00:53:36 +0100 Subject: Update orgmode --- fnl/plugins/orgmode.fnl | 18 ++++++++++++-- fnl/settings/icons.fnl | 64 +++++++++++++++++++++++++------------------------ 2 files changed, 49 insertions(+), 33 deletions(-) (limited to 'fnl') diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl index bbd75ac..ba562e7 100644 --- a/fnl/plugins/orgmode.fnl +++ b/fnl/plugins/orgmode.fnl @@ -1,5 +1,7 @@ ;; Orgmode for nvim. +(local icons (require :settings.icons)) + (local keys [{1 :ga 2 :OrgAgendaPrompt :desc "Open agenda prompt"} {1 :gc 2 :OrgCapturePrompt :desc "Open capture prompt"} {1 :go @@ -43,6 +45,8 @@ {:org_agenda_files ["~/.local/share/org/**/*"] :org_hide_emphasis_markers true :org_agenda_start_on_weekday false + :org_startup_indented true + :org_log_into_drawer :LOGBOOK :org_default_notes_file "~/.local/share/org/refile.org" :org_agenda_templates templates :mappings {:org {:org_cycle : :org_global_cycle :}}}) @@ -52,11 +56,21 @@ bullets (require :org-bullets)] (orgmode.setup_ts_grammar) (orgmode.setup opts) - (bullets.setup {:concealcursor true}))) + (bullets.setup {:concealcursor true + :symbols {:list (. icons :line) + :headlines [(. icons :orb) + (. icons :filled-orb) + (. icons :pentagon) + (. icons :filled-pentagon)] + :checkboxes {:half [(. icons :line) + "@org.checkbox.halfchecked"] + :done [(. icons :checkmark) + "@org.checkbox.checked"] + :todo [" " "@org.checkbox.checked"]}}}))) {1 :nvim-orgmode/orgmode :dependencies :akinsho/org-bullets.nvim - :ft :org + :ft [:org :orgagenda] : config : init : keys} diff --git a/fnl/settings/icons.fnl b/fnl/settings/icons.fnl index 080b1cb..9f53bbc 100644 --- a/fnl/settings/icons.fnl +++ b/fnl/settings/icons.fnl @@ -1,47 +1,49 @@ ;; Icons. -{:error "" - :warn "" - :hint "" - :info "" - :git " " - :search-project "󰺅" - :search-files "󰱽" - :search-text "󱎸" - :notebook "" - :recent-files "󱋢" - :cog "" - :org "" +{:caret ">" :checkmark "" - :right-arrow "" - :small-right-arrow "" - :guillemet "»" - :up : - :down : :close "" + :cmd "" + :code "" + :cog "" + :conflict "" + :document "" + :down : + :error "" + :filled-orb "●" + :filled-pentagon "󰜁" + :git " " :git-add "|" + :git-change-delete "~" :git-delete "_" :git-top-delete "‾" - :git-change-delete "~" :git-untracked "┆" - :telescope "" - :caret ">" - :cmd "" - :lightning "" - :document "" + :guillemet "»" + :hint "" + :ignored "" :import "" + :info "" :keyboard "" - :sleep "󰒲" - :filled-orb "●" + :lightning "" + :line "‒" + :notebook "" :orb "○" + :org "" :package "󰏗" - :vim "" - :code "" + :pentagon "󰜀" :play "" + :recent-files "󱋢" + :right-arrow "" + :search-files "󰱽" + :search-project "󰺅" + :search-text "󱎸" + :sleep "󰒲" + :small-right-arrow "" + :staged "" :star "" - :line "‒" - :ignored "" + :telescope "" :unstaged "" - :staged "" - :conflict "" + :up : + :vim "" + :warn "" } -- cgit v1.2.3-70-g09d2