mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-05 01:17:46 +08:00
Add language id of cspell (#4700)
This commit is contained in:
@@ -14,9 +14,13 @@ endfunction
|
||||
function! ale#handlers#cspell#GetCommand(buffer) abort
|
||||
let l:executable = ale#handlers#cspell#GetExecutable(a:buffer)
|
||||
let l:options = ale#Var(a:buffer, 'cspell_options')
|
||||
let l:filetype = getbufvar(a:buffer, '&filetype')
|
||||
|
||||
let l:language_id_option = empty(l:filetype) ? '' : '--language-id="' . l:filetype . '"'
|
||||
|
||||
return ale#node#Executable(a:buffer, l:executable)
|
||||
\ . ' lint --no-color --no-progress --no-summary'
|
||||
\ . ale#Pad(l:language_id_option)
|
||||
\ . ale#Pad(l:options)
|
||||
\ . ' -- stdin'
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user