From 8618b74356e3ab036967639e580df5b93005d4ae Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 25 Jan 2022 18:22:31 +0100 Subject: WIP migrating from vimspector to dap --- init.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'init.vim') diff --git a/init.vim b/init.vim index 782cb9f..c6de2f1 100644 --- a/init.vim +++ b/init.vim @@ -23,6 +23,9 @@ vnoremap 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() -- cgit v1.2.3