123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- local mappings_utils = require('utils.mappings_utils')
- local map = mappings_utils.map
- local cmd = vim.cmd
- ncvim.add_mappings {
- {
- mode = 'n',
- key_string = 'tn',
- command = ':TestNearest<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tf',
- command = ':TestFile<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tl',
- command = ':TestLast<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tdn',
- command = ':call DebugNearest()<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tdl',
- command = ':call DebugLast()<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'ts',
- command = ':TestSuite<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tg',
- command = ':TestVisit<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tcjw',
- command = ':let g:test#javascript#runner="webdriverio"<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tcjm',
- command = ':let g:test#javascript#runner="mocha"<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tcjj',
- command = ':let g:test#javascript#runner="jest"<CR>',
- options = { noremap = false },
- },
- {
- mode = 'n',
- key_string = 'tsj',
- command = ':echo g:test#javascript#runner<CR>',
- options = { noremap = false },
- },
- }
|