From 64a6eb23e50914fb1fa67a0de63dab6494056b3a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 15:07:15 +0200 Subject: Update fix for orgmode --- fnl/plugins/editor/orgmode.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fnl/plugins/editor') diff --git a/fnl/plugins/editor/orgmode.fnl b/fnl/plugins/editor/orgmode.fnl index dbfe6b2..3ffbd32 100644 --- a/fnl/plugins/editor/orgmode.fnl +++ b/fnl/plugins/editor/orgmode.fnl @@ -21,7 +21,8 @@ [[:FileType {:pattern :org :callback (fn [] - (vim.cmd "setlocal nofoldenable") + (tset vim.opt_local :foldenable false) + (tset vim.opt_local :foldlevelstart 99) (tset vim.opt_local :foldlevel 99) (tset vim.opt_local :conceallevel 2) (tset vim.opt_local :concealcursor :nc))}]]) -- cgit v1.2.3-70-g09d2