feat: Add Deno fmt fixer

This commit is contained in:
Mohammed Chelouti
2020-12-27 01:18:53 +01:00
parent 33f2f8ddcd
commit 4f2666265a
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Before:
runtime autoload/ale/handlers/deno.vim
After:
unlet! g:ale_deno_executable
call ale#linter#Reset()
Execute(Default executable should be detected correctly):
AssertEqual
\ 'deno',
\ ale#handlers#deno#GetExecutable(bufnr(''))
Execute(User specified executable should override default):
let g:ale_deno_executable = '/path/to/deno-bin'
AssertEqual
\ '/path/to/deno-bin',
\ ale#handlers#deno#GetExecutable(bufnr(''))