1
Files
flake-nixinator/config/neovim/store/lazy-plugins/plenary.nvim/plugin/plenary.vim

10 lines
395 B
VimL

" 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>