added feature, but commented it out that prettifies files
This commit is contained in:
parent
78abc61ce4
commit
1f98125e15
1 changed files with 3 additions and 0 deletions
|
|
@ -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')]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue