summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/tools/orgmode.fnl2
-rw-r--r--fnl/settings/autocmds.fnl5
2 files changed, 5 insertions, 2 deletions
diff --git a/fnl/plugins/tools/orgmode.fnl b/fnl/plugins/tools/orgmode.fnl
index be96fd7..bb67b88 100644
--- a/fnl/plugins/tools/orgmode.fnl
+++ b/fnl/plugins/tools/orgmode.fnl
@@ -13,8 +13,6 @@
(fn setup []
(let [orgmode (require :orgmode)]
- (tset vim.opt :conceallevel 2)
- (tset vim.opt :concealcursor :nc)
(orgmode.setup_ts_grammar)
(orgmode.setup opts)))
diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl
index 27d6c2d..f6b02ea 100644
--- a/fnl/settings/autocmds.fnl
+++ b/fnl/settings/autocmds.fnl
@@ -13,6 +13,11 @@
(tset vim.opt_local :number false)
(tset vim.opt_local :relativenumber false))}]
[:BufWinEnter {:command "setlocal formatoptions-=cro"}]
+ [:FileType
+ {:pattern :org
+ :callback (fn []
+ (tset vim.opt_local :conceallevel 2)
+ (tset vim.opt_local :concealcursor :nc))}]
[:FileType {:pattern :qf :command "set nobuflisted"}]
[:FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"}]
[:FileType