aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/after/ftplugin/leaf.lua
blob: bf3e9b7de88b653283afa3075e4f1a29c24f58ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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([=[
   nmap <buffer>  ,t  <Plug>(leaf-switch-task-status-to-todo)
   nmap <buffer>  ,T  <Plug>(leaf-switch-task-status-to-todo-rec)
   nmap <buffer>  ,d  <Plug>(leaf-switch-task-status-to-done)
   nmap <buffer>  ,D  <Plug>(leaf-switch-task-status-to-done-rec)
   nmap <buffer>  ,c  <Plug>(leaf-switch-task-status-to-canceled)
   nmap <buffer>  ,C  <Plug>(leaf-switch-task-status-to-canceled-rec)
   ]=])
end)