dotfiles/.config/nvim/pack/tree/start/plenary.nvim/plugin/plenary.vim

10 lines
395 B
VimL
Raw Normal View History

2025-09-16 01:01:02 +02:00
" Create command for running busted
command! -nargs=1 -complete=file PlenaryBustedFile
\ lua require('plenary.test_harness').test_file([[<args>]])
command! -nargs=+ -complete=file PlenaryBustedDirectory
\ lua require('plenary.test_harness').test_directory_command([[<args>]])
nnoremap <Plug>PlenaryTestFile :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR>