diff options
author | Fred Emmott <fe@fb.com> | 2018-07-27 13:50:59 -0700 |
---|---|---|
committer | Fred Emmott <fe@fb.com> | 2018-08-02 11:28:56 -0700 |
commit | 238201805dd23ea422a107b3170de7892335137b (patch) | |
tree | e214989c1a7dd048a0d162dc27d70a92479a62db /autoload | |
parent | 5f024eda093dcce62159a6f262ffb084ccce4e51 (diff) | |
download | ale-238201805dd23ea422a107b3170de7892335137b.zip |
Split Hack out from PHP, modernize
fixes #1738
- Replace previous `hh_client` usage with LSP client
- Add `HHAST` linter
- Split Hack from PHP: Hack is increasingly diverging from PHP:
- Hack tools do not understand PHP
- Most PHP tools do not handle Hack code well (including vim's syntax
highightling files)
- http://github.com/hhvm/vim-hack now sets filetype to `hack`
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fixers/hackfmt.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/ale/fixers/hackfmt.vim b/autoload/ale/fixers/hackfmt.vim index b5bf0dc5..bf2d4f71 100644 --- a/autoload/ale/fixers/hackfmt.vim +++ b/autoload/ale/fixers/hackfmt.vim @@ -1,12 +1,12 @@ " Author: Sam Howie <samhowie@gmail.com> " Description: Integration of hackfmt with ALE. -call ale#Set('php_hackfmt_executable', 'hackfmt') -call ale#Set('php_hackfmt_options', '') +call ale#Set('hack_hackfmt_executable', 'hackfmt') +call ale#Set('hack_hackfmt_options', '') function! ale#fixers#hackfmt#Fix(buffer) abort - let l:executable = ale#Var(a:buffer, 'php_hackfmt_executable') - let l:options = ale#Var(a:buffer, 'php_hackfmt_options') + let l:executable = ale#Var(a:buffer, 'hack_hackfmt_executable') + let l:options = ale#Var(a:buffer, 'hack_hackfmt_options') return { \ 'command': ale#Escape(l:executable) |