summaryrefslogtreecommitdiff
path: root/ale_linters/javascript/tsserver.vim
blob: 63509022f802af052b627311e95ebc474fbce8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" 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',
\   'executable_callback': ale#node#FindExecutableFunc('javascript_tsserver', [
\       'node_modules/.bin/tsserver',
\   ]),
\   'command': '%e',
\   'project_root_callback': 'ale#handlers#tsserver#GetProjectRoot',
\   'language': '',
\})