diff options
author | Arnold Chand <creativenull@outlook.com> | 2021-07-25 00:39:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 13:39:56 +0900 |
commit | 8c591996a83d623fb158fe090acbd89dabbfaf06 (patch) | |
tree | 048374b84da988f9a31297538f978a3957bb96fe /ale_linters | |
parent | 7d8fb2ba1716a744446b811fc278ecf30d4eb771 (diff) | |
download | ale-8c591996a83d623fb158fe090acbd89dabbfaf06.zip |
Add importMap option to deno Initialization Options (#3827)
* feat(deno): move init options to handlers
* feat(deno): add deno lsp support for js files
* feat(deno): use default map option
* feat(docs): add deno import map option
* feat(deno): add tests for importMap option
* fix(deno): use full path in importMap
* feat(deno): remove deno as linter for js, separate PR
* fix(deno): test for executable
* fix(deno-test): include filename to simplify function
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/typescript/deno.vim | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ale_linters/typescript/deno.vim b/ale_linters/typescript/deno.vim index 051cb208..f47fac7a 100644 --- a/ale_linters/typescript/deno.vim +++ b/ale_linters/typescript/deno.vim @@ -1,4 +1,5 @@ " Author: Mohammed Chelouti - https://github.com/motato1 +" Arnold Chand <creativenull@outlook.com> " Description: Deno lsp linter for TypeScript files. call ale#linter#Define('typescript', { @@ -7,19 +8,5 @@ call ale#linter#Define('typescript', { \ 'executable': function('ale#handlers#deno#GetExecutable'), \ 'command': '%e lsp', \ 'project_root': function('ale#handlers#deno#GetProjectRoot'), -\ 'initialization_options': function('ale_linters#typescript#deno#GetInitializationOptions'), +\ 'initialization_options': function('ale#handlers#deno#GetInitializationOptions'), \}) - -function! ale_linters#typescript#deno#GetInitializationOptions(buffer) abort - let l:options = { - \ 'enable': v:true, - \ 'lint': v:true, - \ 'unstable': v:false, - \ } - - if ale#Var(a:buffer, 'deno_unstable') - let l:options.unstable = v:true - endif - - return l:options -endfunction |