From f9b4ec03649462228378cdf7bae0c0045f2f693d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Fussing=20M=C3=B8rk?= Date: Mon, 4 Nov 2019 15:13:18 +0100 Subject: [PATCH] Removed F9 jq execution in favour of au FileType definition --- neovim/.config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index b269c8e..00bf748 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -146,7 +146,6 @@ nnoremap nnoremap nnoremap nnoremap -nnoremap :%!jq '.' nmap gn (GitGutterNextHunk) " git next nmap gp (GitGutterPrevHunk) " git previous nmap ga (GitGutterStageHunk) " git add (chunk) @@ -154,5 +153,6 @@ nmap gu (GitGutterUndoHunk) " git undo (chunk) "AutoCommands au BufWinEnter * set number +au FileType json setlocal equalprg=jq\ . au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null autocmd FileType python setlocal completeopt-=preview