added feature, but commented it out that prettifies files

This commit is contained in:
tomit4 2022-06-08 15:20:31 -07:00
parent 78abc61ce4
commit 1f98125e15

View file

@ -36,6 +36,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>]]
-- Prettify using shortcut gp (careful, only use on files that have a parser)
-- vim.cmd[[nnoremap gp :silent %!prettier --stdin-filepath %<CR>]]
-- j/k will move virtual lines (lines that wrap)
vim.cmd[[noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j')]]
vim.cmd[[noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k')]]