📝 Installed jest unit testing

This commit is contained in:
z3rOR0ne 2022-07-21 11:26:56 -07:00
parent b54ad4dbb6
commit a8f0f6be8d
3 changed files with 9 additions and 5 deletions

View file

@ -23,7 +23,7 @@ keymap('n', '<c-x>', '<c-w>:nohl<CR>', {silent = true})
-- Can't quite get working yet
-- keybind map Ctrl + m to :MarkdownPreview
-- vim.cmd[[nmap <C-m> <Plug>MarkdownPreviewToggle]]
keymap('n', '<c-s>', '<c-w>:MarkdownPreview<CR>', {})
keymap('n', '<s-m>', '<c-w>:MarkdownPreview<CR>', {})
--
-- Toggle Multi-Cursor with j or k
vim.cmd[[nmap <C-j> <C-Down>]]
@ -38,6 +38,9 @@ vim.cmd[[ inoremap cll console.log()<esc>i]]
-- Alias replace all to shift + S
vim.cmd[[nnoremap S :%s///gI<Left><Left><Left><Left>]]
-- Alias jest unit testing for current file
vim.cmd[[nnoremap T :lua require"jester".run_file()]]
-- Prettify using shortcut gp (careful, only use on files that have a parser)
-- vim.cmd[[nnoremap gp :silent %!prettier --stdin-filepath %<CR>]]