From def0d1bc99c28af7518e71ad855c6948c01f0123 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 19 Aug 2024 16:36:21 +0200 Subject: [PATCH] set nowrap and conceallevel=2 for org files --- lua/plugins/orgmode.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua index 4883d0e..bf92947 100644 --- a/lua/plugins/orgmode.lua +++ b/lua/plugins/orgmode.lua @@ -29,6 +29,15 @@ return { org_default_notes_file = '~/org/refile.org', org_todo_keywords = { 'TODO', 'WAITING', '|', 'DONE', 'DELEGATED' }, } + + vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, { + group = vim.api.nvim_create_augroup('orgmode', { clear = true }), + pattern = '*.org', + callback = function() + vim.opt_local.conceallevel = 2 + vim.opt_local.wrap = false + end, + }) end, }, }