📝 Installed jest unit testing
This commit is contained in:
parent
b54ad4dbb6
commit
a8f0f6be8d
3 changed files with 9 additions and 5 deletions
|
|
@ -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>]]
|
||||
|
||||
|
|
|
|||
|
|
@ -42,12 +42,14 @@ require('packer').startup(function()
|
|||
use {'lewis6991/gitsigns.nvim'}
|
||||
use 'Yggdroot/indentLine'
|
||||
use 'mg979/vim-visual-multi'-- {'branch': 'master'}
|
||||
use {'iamcco/markdown-preview.nvim'} -- :call mkdp#util#install()
|
||||
use {'iamcco/markdown-preview.nvim'} -- call mkdp#util#install()
|
||||
use 'luochen1990/rainbow'
|
||||
use 'windwp/nvim-autopairs'
|
||||
use 'simeji/winresizer'
|
||||
use '907th/vim-auto-save'
|
||||
use 'David-Kunz/jester' -- for unit tests using jest
|
||||
use 'jremmen/vim-ripgrep'
|
||||
use 'rhysd/vim-clang-format' -- formatter for c and c++
|
||||
use 'arrufat/vala.vim' -- for vala programming language
|
||||
use 'chemzqm/neovim'
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -28,9 +28,8 @@ curl https://raw.githubusercontent.com/SharUpOff/pkgtop/main/dist/pkgtop.sh -so
|
|||
|
||||
sudo chmod 755 /usr/local/bin/pkgtop
|
||||
|
||||
Reinstall npm, nodemon, and prettier
|
||||
Reinstall npm, nodemon, and prettier, and jest
|
||||
|
||||
doas pacman -S npm (delete what is necessary to get this to go through)
|
||||
|
||||
doas npm install -g nodemon
|
||||
doas npm install -g prettier
|
||||
doas npm install -g nodemon prettier jest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue