package publish
This commit is contained in:
parent
44f52e4602
commit
f979936b8a
1 changed files with 2 additions and 0 deletions
|
@ -14,9 +14,11 @@ au BufNewFile,BufRead *.*ats
|
|||
setlocal commentstring=(*\ %s\ *)
|
||||
|
||||
function! AtsFormat()
|
||||
let cursor = getpos('.')
|
||||
exec 'normal! gg'
|
||||
exec 'silent !atsfmt -i ' . expand('%')
|
||||
exec 'e'
|
||||
call setpos('.', cursor)
|
||||
endfunction
|
||||
|
||||
if g:ats_autoformat == 1
|
||||
|
|
Loading…
Reference in a new issue