This commit is contained in:
Adam Stankiewicz
2019-12-31 14:05:09 +01:00
parent cea0d08a06
commit b8a5504021
29 changed files with 529 additions and 153 deletions

View File

@@ -32,6 +32,20 @@ if exists('g:dhall_strip_whitespace')
endif
endif
function! DhallFormat()
let cursor = getpos('.')
exec 'silent %!dhall format'
call setpos('.', cursor)
endfunction
if exists('g:dhall_format')
if g:dhall_format == 1
augroup dhall
au BufWritePre *.dhall call DhallFormat()
augroup END
endif
endif
augroup dhall
au BufNewFile,BufRead *.dhall setl shiftwidth=2
augroup END