mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
set nowrap and conceallevel=2 for org files
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user