diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 15:01:45 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 15:01:45 +0200 |
commit | eacede529ead8ff6450d2da3a4e12750c303394d (patch) | |
tree | ff08661d0eef0917483c78663f978db6a90dc1bb /fnl | |
parent | b79b93e97aed27fbeee6a88a1387d98b04d2bcd2 (diff) |
Fix orgmode no fold
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/editor/orgmode.fnl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fnl/plugins/editor/orgmode.fnl b/fnl/plugins/editor/orgmode.fnl index 954e7d4..dbfe6b2 100644 --- a/fnl/plugins/editor/orgmode.fnl +++ b/fnl/plugins/editor/orgmode.fnl @@ -21,6 +21,8 @@ [[:FileType {:pattern :org :callback (fn [] + (vim.cmd "setlocal nofoldenable") + (tset vim.opt_local :foldlevel 99) (tset vim.opt_local :conceallevel 2) (tset vim.opt_local :concealcursor :nc))}]]) @@ -41,9 +43,8 @@ :org_agenda_templates templates}) (fn config [] - (let [orgmode (require :orgmode) - cmds (require :util.cmds)] + (let [orgmode (require :orgmode)] (orgmode.setup_ts_grammar) (orgmode.setup opts))) -{1 :nvim-orgmode/orgmode : config : init :event :BufReadPost : keys} +{1 :nvim-orgmode/orgmode : config : init :event :VeryLazy : keys} |