Skip to content

Commit

Permalink
Add vim mappings for prettiying JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbrecht committed Oct 26, 2022
1 parent 2c2880c commit 846cc3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvim/.config/nvim/mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ nnoremap Q @@
" yank current buffer's file name to system clipboard
nnoremap <Leader>yf :let @+ = expand("%")<Cr>
vnoremap <Leader>j :!jq<cr>
nnoremap <Leader>j :%!jq<cr>
" Stolen from https://www.destroyallsoftware.com/screencasts/catalog/file-navigation-in-vim
cnoremap %% <C-R>=expand('%:h').'/'<cr>
Expand Down

0 comments on commit 846cc3f

Please sign in to comment.