summaryrefslogtreecommitdiff
path: root/autoload/ale/fixers/dhall_lint.vim
blob: 2abbe6f7a6d23517aeba305443b9887e3c34cb4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Author: toastal <toastal@protonmail.com>
" Description: Dhall’s built-in linter/formatter

function! ale#fixers#dhall_lint#Fix(buffer) abort
    let l:executable = ale#dhall#GetExecutableWithOptions(a:buffer)
    let l:command = l:executable
    \   . ' lint'
    \   . ' --inplace %t'

    return {
    \   'command': l:command,
    \   'read_temporary_file': 1,
    \}
endfunction