citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 0c1fa34815ee44b9c5eba2927095d4511ed90c17
parent bf3b6ac96bd71b696f9367912d2b5316a7be42b3
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 29 Dec 2020 11:40:51 -0800

vim: safe gofmt

Diffstat:
Mdotfiles/.config/nvim/init.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim @@ -19,3 +19,5 @@ set clipboard+=unnamedplus let mapleader = "\\" let maplocalleader = "\\" nmap <Leader>xda ma:%s/\s\+$//g<CR>`a + +autocmd FileType go autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!gofmt-safe\<esc>:loadview\<esc>`z"