From 7f9bc5193cf27e1546c093bd809651623952a9dd Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 24 Jan 2023 22:57:43 +0100 Subject: Set concellevel for orgmode with autocmd --- fnl/settings/autocmds.fnl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fnl/settings/autocmds.fnl') 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 -- cgit v1.2.3-70-g09d2