aca1edb476
* add project_root_callback for tsserver * add tests for tsserver project root * Update test/command_callback/test_javascript_tsserver_command_callback.vader
17 lines
619 B
VimL
17 lines
619 B
VimL
" 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': '',
|
|
\})
|