aboutsummaryrefslogtreecommitdiffstats
path: root/init.vim
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-01-25 18:22:31 +0100
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-01-25 18:22:31 +0100
commit8618b74356e3ab036967639e580df5b93005d4ae (patch)
treec6cbe3d5fe088a5bb40dd4169cbe8c91fb53ff5f /init.vim
parent92988f8b38c11e4c9be7cb34411ab46bca636717 (diff)
downloadnvim-conf-8618b74356e3ab036967639e580df5b93005d4ae.tar.gz
nvim-conf-8618b74356e3ab036967639e580df5b93005d4ae.zip
WIP migrating from vimspector to dap
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.vim b/init.vim
index 782cb9f..c6de2f1 100644
--- a/init.vim
+++ b/init.vim
@@ -23,6 +23,9 @@ vnoremap <leader>p "_dP
" remove whitespaces
autocmd BufWritePre * :%s/\s\+$//e
+" format json files
+autocmd BufWritePre *.json :%!jq
+
" augroup fmtphp
" autocmd!
" autocmd BufWritePre filetype php undojoin | lua vim.lsp.buf.formatting()