1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:20:04 +08:00
SpaceVim/bundle/plenary.nvim/plugin/plenary.vim

10 lines
414 B
VimL
Raw Normal View History

2022-05-16 22:20:10 +08:00
" Create command for running busted
command! -nargs=1 -complete=file PlenaryBustedFile
\ lua require('plenary.busted').run(vim.fn.expand("<args>"))
command! -nargs=+ -complete=file PlenaryBustedDirectory
\ lua require('plenary.test_harness').test_directory_command(vim.fn.expand("<args>"))
nnoremap <Plug>PlenaryTestFile :lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>