summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 15:07:15 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 15:07:15 +0200
commit64a6eb23e50914fb1fa67a0de63dab6494056b3a (patch)
tree3032d7c5f423e55dae271689ea4376054a6c916d /fnl/plugins/editor
parenteacede529ead8ff6450d2da3a4e12750c303394d (diff)
Update fix for orgmode
Diffstat (limited to 'fnl/plugins/editor')
-rw-r--r--fnl/plugins/editor/orgmode.fnl3
1 files changed, 2 insertions, 1 deletions
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))}]])