2018-07-04 06:53:25 -04:00
|
|
|
" Author: Chaucerbao, w0rp <devw0rp@gmail.com>
|
|
|
|
" Description: tsserver integration for ALE
|
|
|
|
|
|
|
|
call ale#Set('javascript_tsserver_executable', 'tsserver')
|
|
|
|
call ale#Set('javascript_tsserver_config_path', '')
|
|
|
|
call ale#Set('javascript_tsserver_use_global', get(g:, 'ale_use_global_executables', 0))
|
|
|
|
|
|
|
|
call ale#linter#Define('javascript', {
|
|
|
|
\ 'name': 'tsserver',
|
|
|
|
\ 'lsp': 'tsserver',
|
2021-06-30 12:54:34 -04:00
|
|
|
\ 'executable': {b -> ale#path#FindExecutable(b, 'javascript_tsserver', [
|
2018-08-25 12:13:42 -04:00
|
|
|
\ 'node_modules/.bin/tsserver',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ ])},
|
2018-08-25 12:13:42 -04:00
|
|
|
\ 'command': '%e',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'project_root': function('ale#handlers#tsserver#GetProjectRoot'),
|
2018-07-04 06:53:25 -04:00
|
|
|
\ 'language': '',
|
|
|
|
\})
|