diff --git a/ftplugin/ats.vim b/ftplugin/ats.vim index 91ea825..f4319cf 100644 --- a/ftplugin/ats.vim +++ b/ftplugin/ats.vim @@ -4,7 +4,11 @@ endif let b:ats_ftplugin = 1 if !exists('g:ats_autoformat') - let g:ats_autoformat = 0 + if executable('atsfmt') == 1 + let g:ats_autoformat = 1 + else + let g:ats_autoformat = 0 + endif endif set smarttab