Look for node packages in .yarn/sdks as well

This commit is contained in:
Nathan Herald 2020-07-29 18:23:00 +02:00
parent 48fe0dd4f6
commit b74827de99
No known key found for this signature in database
GPG key ID: 24EFC6A6CBAA2430
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@ call ale#linter#Define('typescript', {
\ 'name': 'tsserver',
\ 'lsp': 'tsserver',
\ 'executable': {b -> ale#node#FindExecutable(b, 'typescript_tsserver', [
\ '.yarn/sdks/typescript/bin/tsserver',
\ 'node_modules/.bin/tsserver',
\ ])},
\ 'command': '%e',

View file

@ -5,6 +5,7 @@ let s:executables = [
\ 'node_modules/.bin/eslint_d',
\ 'node_modules/eslint/bin/eslint.js',
\ 'node_modules/.bin/eslint',
\ '.yarn/sdks/eslint/bin/eslint',
\]
let s:sep = has('win32') ? '\' : '/'