summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-09 13:01:46 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-09 13:01:46 +0200
commit9ccd0a298af101e525b6b044f4fd838e0bb2a279 (patch)
tree9322b8935e80793842b53eff9e01e96b6f76b77e /fnl
parent0c19ec963f8857558bd435ea70107a9920b46911 (diff)
Add org roam
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/orgmode.fnl35
1 files changed, 21 insertions, 14 deletions
diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl
index ac04863..8297d13 100644
--- a/fnl/plugins/orgmode.fnl
+++ b/fnl/plugins/orgmode.fnl
@@ -56,7 +56,7 @@
(when option.action
(option.action))))))))
-(local opts
+(local org-opts
{:org_agenda_files ["~/.local/share/org/**/*"]
:org_hide_emphasis_markers true
:org_agenda_start_on_weekday false
@@ -67,24 +67,31 @@
:ui {:menu {: handler}}
:mappings {:org {:org_cycle :<c-e> :org_global_cycle :<s-e>}}})
+(local bullets-opts
+ {: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"]}}})
+
+(local roam-opts {:directory "~/.local/share/org"})
+
(fn config []
(let [orgmode (require :orgmode)
+ roam (require :org-roam)
bullets (require :org-bullets)]
- (orgmode.setup opts)
- (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"]}}})))
+ (orgmode.setup org-opts)
+ (roam.setup roam-opts)
+ (bullets.setup bullets-opts)))
{1 :nvim-orgmode/orgmode
- :dependencies :akinsho/org-bullets.nvim
+ :dependencies [:akinsho/org-bullets.nvim :chipsenkbeil/org-roam.nvim]
:ft [:org :orgagenda]
: config
: init