1
0
Fork 0
mirror of synced 2024-11-14 05:08:56 -05:00
ultimate-vim/sources_non_forked/ale/ale_linters/javascript/tsserver.vim

18 lines
617 B
VimL
Raw Normal View History

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',
\ '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': '',
\})