summaryrefslogtreecommitdiffhomepage
path: root/.exrc
diff options
context:
space:
mode:
Diffstat (limited to '.exrc')
-rw-r--r--.exrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.exrc b/.exrc
index c1f065a..2de0b63 100644
--- a/.exrc
+++ b/.exrc
@@ -4,7 +4,9 @@ function s:SaveExcursion(cmd)
call winrestview(l:win)
endfunction
-autocmd BufWritePre *.go call s:SaveExcursion('gofmt -s')
-autocmd BufWritePre *.templ call s:SaveExcursion('templ fmt')
+autocmd BufWritePre *.go
+ \ call s:SaveExcursion("gofmt -s")
+autocmd BufWritePre *.templ
+ \ call s:SaveExcursion("templ fmt | sed 's/{ {/{{/; s/} }/}}/'")
let g:netrw_list_hide .= ',.*_templ.go$'