From eacede529ead8ff6450d2da3a4e12750c303394d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 15:01:45 +0200 Subject: Fix orgmode no fold --- fnl/plugins/editor/orgmode.fnl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fnl/plugins') 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} -- cgit v1.2.3-70-g09d2