1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

feat(todo): use lua todo manager for neovim

This commit is contained in:
wsdjeg 2022-10-20 21:19:38 +08:00
parent e8fde994f2
commit 8ec9409fda

View File

@ -699,7 +699,11 @@ function! SpaceVim#mapping#space#init() abort
\ ]
\ ]
\ , 1)
call SpaceVim#custom#SPC('nnoremap', ['a', 'o'], 'call SpaceVim#plugins#todo#list()', 'open-todo-manager', 1)
if has('nvim-0.7.0')
call SpaceVim#custom#SPC('nnoremap', ['a', 'o'], 'lua require("spacevim.plugin.todo").list()', 'open-todo-manager', 1)
else
call SpaceVim#custom#SPC('nnoremap', ['a', 'o'], 'call SpaceVim#plugins#todo#list()', 'open-todo-manager', 1)
endif
endfunction
function! SpaceVim#mapping#space#def(m, keys, cmd, desc, is_cmd, ...) abort