commit 5bbc4d42ba257140e103e94261702b5d11cc6378
parent 76ec45fbf50037f90a34736b94bb2493714db799
Author: William Casarin <jb55@jb55.com>
Date: Mon, 21 Jun 2021 16:25:14 -0700
nvim: a few things
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
@@ -21,5 +21,7 @@ nmap <Leader>xda ma:%s/\s\+$//g<CR>`a
autocmd FileType go autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe gofmt\<esc>:loadview\<esc>`z"
autocmd FileType rust autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe rustfmt\<esc>:loadview\<esc>`z"
+autocmd filetype javascript set sw=2 ts=2 expandtab
autocmd BufEnter,BufNew *.gmi set wrap linebreak
+au BufWritePost,FileWritePost ~/.Xdefaults,~/.Xresources silent! !xrdb -load % >/dev/null 2>&1