vimrc.after_ftplugin('leaf', function(conf) vim.wo.foldlevel = 1 vim.b.caw_oneline_comment = '#' if vim.fn.exists(':AutosaveEnable') == 2 then vim.cmd('AutosaveEnable') end vim.cmd([=[ nnoremap ,t (leaf-switch-task-status-to-todo) nnoremap ,T (leaf-switch-task-status-to-todo-rec) nnoremap ,d (leaf-switch-task-status-to-done) nnoremap ,D (leaf-switch-task-status-to-done-rec) nnoremap ,c (leaf-switch-task-status-to-canceled) nnoremap ,C (leaf-switch-task-status-to-canceled-rec) ]=]) end)