summaryrefslogtreecommitdiff
path: root/ale_linters/typescript/tsserver.vim
blob: bac63229c4e5d63523e1dda817f74c9ad1fa3596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" Author: w0rp <devw0rp@gmail.com>
" Description: tsserver integration for ALE

call ale#Set('typescript_tsserver_executable', 'tsserver')
call ale#Set('typescript_tsserver_config_path', '')
call ale#Set('typescript_tsserver_use_global', get(g:, 'ale_use_global_executables', 0))

call ale#linter#Define('typescript', {
\   'name': 'tsserver',
\   'lsp': 'tsserver',
\   'executable_callback': ale#node#FindExecutableFunc('typescript_tsserver', [
\       'node_modules/.bin/tsserver',
\   ]),
\   'command': '%e',
\   'project_root_callback': {-> ''},
\   'language': '',
\})