set nowrap and conceallevel=2 for org files

This commit is contained in:
Thomas Ruoff
2024-08-19 16:36:21 +02:00
parent c360d8897f
commit def0d1bc99

View File

@@ -29,6 +29,15 @@ return {
org_default_notes_file = '~/org/refile.org', org_default_notes_file = '~/org/refile.org',
org_todo_keywords = { 'TODO', 'WAITING', '|', 'DONE', 'DELEGATED' }, 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, end,
}, },
} }