summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/ansible/language_server.vim (renamed from ale_linters/ansible/ansible_language_server.vim)17
-rw-r--r--ale_linters/dafny/dafny.vim2
-rw-r--r--ale_linters/elixir/elixir_ls.vim3
-rw-r--r--ale_linters/elm/ls.vim (renamed from ale_linters/elm/elm_ls.vim)9
-rw-r--r--ale_linters/fortran/language_server.vim1
-rw-r--r--ale_linters/html/angular.vim2
-rw-r--r--ale_linters/java/javalsp.vim1
-rw-r--r--ale_linters/javascript/flow_ls.vim3
-rw-r--r--ale_linters/julia/languageserver.vim1
-rw-r--r--ale_linters/kotlin/languageserver.vim1
-rw-r--r--ale_linters/lua/lua_language_server.vim2
-rw-r--r--ale_linters/nix/rnix_lsp.vim1
-rw-r--r--ale_linters/ocaml/ols.vim1
-rw-r--r--ale_linters/puppet/languageserver.vim1
-rw-r--r--ale_linters/purescript/ls.vim1
-rw-r--r--ale_linters/python/jedils.vim1
-rw-r--r--ale_linters/r/languageserver.vim1
-rw-r--r--ale_linters/reason/ls.vim1
-rw-r--r--ale_linters/reason/ols.vim1
-rw-r--r--ale_linters/rust/analyzer.vim1
-rw-r--r--ale_linters/swift/sourcekitlsp.vim1
-rw-r--r--ale_linters/terraform/terraform_ls.vim1
-rw-r--r--ale_linters/vue/vls.vim1
-rw-r--r--ale_linters/yaml/ls.vim1
24 files changed, 38 insertions, 17 deletions
diff --git a/ale_linters/ansible/ansible_language_server.vim b/ale_linters/ansible/language_server.vim
index d1f3fb7d..0c064353 100644
--- a/ale_linters/ansible/ansible_language_server.vim
+++ b/ale_linters/ansible/language_server.vim
@@ -4,17 +4,17 @@
call ale#Set('ansible_language_server_executable', 'ansible-language-server')
call ale#Set('ansible_language_server_config', {})
-function! ale_linters#ansible#ansible_language_server#Executable(buffer) abort
+function! ale_linters#ansible#language_server#Executable(buffer) abort
return ale#Var(a:buffer, 'ansible_language_server_executable')
endfunction
-function! ale_linters#ansible#ansible_language_server#GetCommand(buffer) abort
- let l:executable = ale_linters#ansible#ansible_language_server#Executable(a:buffer)
+function! ale_linters#ansible#language_server#GetCommand(buffer) abort
+ let l:executable = ale_linters#ansible#language_server#Executable(a:buffer)
return ale#Escape(l:executable) . ' --stdio'
endfunction
-function! ale_linters#ansible#ansible_language_server#FindProjectRoot(buffer) abort
+function! ale_linters#ansible#language_server#FindProjectRoot(buffer) abort
let l:dir = fnamemodify(
\ ale#path#FindNearestFile(a:buffer, 'ansible.cfg'),
\ ':h'
@@ -37,10 +37,11 @@ function! ale_linters#ansible#ansible_language_server#FindProjectRoot(buffer) ab
endfunction
call ale#linter#Define('ansible', {
-\ 'name': 'ansible-language-server',
+\ 'name': 'language_server',
+\ 'aliases': ['ansible_language_server', 'ansible-language-server'],
\ 'lsp': 'stdio',
-\ 'executable': function('ale_linters#ansible#ansible_language_server#Executable'),
-\ 'command': function('ale_linters#ansible#ansible_language_server#GetCommand'),
-\ 'project_root': function('ale_linters#ansible#ansible_language_server#FindProjectRoot'),
+\ 'executable': function('ale_linters#ansible#language_server#Executable'),
+\ 'command': function('ale_linters#ansible#language_server#GetCommand'),
+\ 'project_root': function('ale_linters#ansible#language_server#FindProjectRoot'),
\ 'lsp_config': {b -> ale#Var(b, 'ansible_language_server_config')}
\})
diff --git a/ale_linters/dafny/dafny.vim b/ale_linters/dafny/dafny.vim
index 2a9f761a..8a114d22 100644
--- a/ale_linters/dafny/dafny.vim
+++ b/ale_linters/dafny/dafny.vim
@@ -1,4 +1,5 @@
" Author: Taylor Blau <me@ttaylorr.com>
+call ale#Set('dafny_dafny_timelimit', 10)
function! ale_linters#dafny#dafny#Handle(buffer, lines) abort
let l:pattern = '\v(.*)\((\d+),(\d+)\): (.*): (.*)'
@@ -31,7 +32,6 @@ function! ale_linters#dafny#dafny#GetCommand(buffer) abort
return printf('dafny %%s /compile:0 /timeLimit:%d', ale#Var(a:buffer, 'dafny_dafny_timelimit'))
endfunction
-call ale#Set('dafny_dafny_timelimit', 10)
call ale#linter#Define('dafny', {
\ 'name': 'dafny',
\ 'executable': 'dafny',
diff --git a/ale_linters/elixir/elixir_ls.vim b/ale_linters/elixir/elixir_ls.vim
index a7d7110c..c7dda600 100644
--- a/ale_linters/elixir/elixir_ls.vim
+++ b/ale_linters/elixir/elixir_ls.vim
@@ -12,7 +12,8 @@ function! ale_linters#elixir#elixir_ls#GetExecutable(buffer) abort
endfunction
call ale#linter#Define('elixir', {
-\ 'name': 'elixir-ls',
+\ 'name': 'elixir_ls',
+\ 'aliases': ['elixir-ls', 'elixirls'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#elixir#elixir_ls#GetExecutable'),
\ 'command': function('ale_linters#elixir#elixir_ls#GetExecutable'),
diff --git a/ale_linters/elm/elm_ls.vim b/ale_linters/elm/ls.vim
index a02dbf42..38a5b234 100644
--- a/ale_linters/elm/elm_ls.vim
+++ b/ale_linters/elm/ls.vim
@@ -10,13 +10,13 @@ call ale#Set('elm_ls_elm_format_path', '')
call ale#Set('elm_ls_elm_test_path', '')
call ale#Set('elm_ls_elm_analyse_trigger', 'change')
-function! elm_ls#GetRootDir(buffer) abort
+function! ale_linters#elm#ls#GetProjectRoot(buffer) abort
let l:elm_json = ale#path#FindNearestFile(a:buffer, 'elm.json')
return !empty(l:elm_json) ? fnamemodify(l:elm_json, ':p:h') : ''
endfunction
-function! elm_ls#GetOptions(buffer) abort
+function! ale_linters#elm#ls#GetOptions(buffer) abort
return {
\ 'elmPath': ale#Var(a:buffer, 'elm_ls_elm_path'),
\ 'elmFormatPath': ale#Var(a:buffer, 'elm_ls_elm_format_path'),
@@ -26,7 +26,8 @@ function! elm_ls#GetOptions(buffer) abort
endfunction
call ale#linter#Define('elm', {
-\ 'name': 'elm_ls',
+\ 'name': 'ls',
+\ 'aliases': ['elm_ls'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#path#FindExecutable(b, 'elm_ls', [
\ 'node_modules/.bin/elm-language-server',
@@ -34,7 +35,7 @@ call ale#linter#Define('elm', {
\ 'elm-lsp'
\ ])},
\ 'command': '%e --stdio',
-\ 'project_root': function('elm_ls#GetRootDir'),
+\ 'project_root': function('ale_linters#elm#ls#GetProjectRoot'),
\ 'language': 'elm',
\ 'initialization_options': function('elm_ls#GetOptions')
\})
diff --git a/ale_linters/fortran/language_server.vim b/ale_linters/fortran/language_server.vim
index 00aa0577..c885b699 100644
--- a/ale_linters/fortran/language_server.vim
+++ b/ale_linters/fortran/language_server.vim
@@ -12,6 +12,7 @@ endfunction
call ale#linter#Define('fortran', {
\ 'name': 'language_server',
+\ 'aliases': ['fortls'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'fortran_language_server_executable')},
\ 'command': '%e',
diff --git a/ale_linters/html/angular.vim b/ale_linters/html/angular.vim
index 4f368fb4..05caf59d 100644
--- a/ale_linters/html/angular.vim
+++ b/ale_linters/html/angular.vim
@@ -48,7 +48,7 @@ endfunction
call ale#linter#Define('html', {
\ 'name': 'angular',
-\ 'aliases': ['angular-language-server'],
+\ 'aliases': ['angular-language-server', 'angularls'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#html#angular#GetExecutable'),
\ 'command': function('ale_linters#html#angular#GetCommand'),
diff --git a/ale_linters/java/javalsp.vim b/ale_linters/java/javalsp.vim
index baf584c8..fa3b0e2c 100644
--- a/ale_linters/java/javalsp.vim
+++ b/ale_linters/java/javalsp.vim
@@ -46,6 +46,7 @@ endfunction
call ale#linter#Define('java', {
\ 'name': 'javalsp',
+\ 'aliases': ['java_language_server'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#java#javalsp#Executable'),
\ 'command': function('ale_linters#java#javalsp#Command'),
diff --git a/ale_linters/javascript/flow_ls.vim b/ale_linters/javascript/flow_ls.vim
index fec34011..9755ca4e 100644
--- a/ale_linters/javascript/flow_ls.vim
+++ b/ale_linters/javascript/flow_ls.vim
@@ -17,7 +17,8 @@ function! ale_linters#javascript#flow_ls#FindProjectRoot(buffer) abort
endfunction
call ale#linter#Define('javascript', {
-\ 'name': 'flow-language-server',
+\ 'name': 'flow_ls',
+\ 'aliaes': ['flow-language-server'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#path#FindExecutable(b, 'javascript_flow_ls', [
\ 'node_modules/.bin/flow',
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim
index 999ad815..fbfab517 100644
--- a/ale_linters/julia/languageserver.vim
+++ b/ale_linters/julia/languageserver.vim
@@ -13,6 +13,7 @@ endfunction
call ale#linter#Define('julia', {
\ 'name': 'languageserver',
+\ 'aliases': ['julials'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'julia_executable')},
\ 'command': function('ale_linters#julia#languageserver#GetCommand'),
diff --git a/ale_linters/kotlin/languageserver.vim b/ale_linters/kotlin/languageserver.vim
index af78c0e0..18b153ae 100644
--- a/ale_linters/kotlin/languageserver.vim
+++ b/ale_linters/kotlin/languageserver.vim
@@ -21,6 +21,7 @@ endfunction
call ale#linter#Define('kotlin', {
\ 'name': 'languageserver',
+\ 'aliaes': ['kotlin_language_server'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'kotlin_languageserver_executable')},
\ 'command': '%e',
diff --git a/ale_linters/lua/lua_language_server.vim b/ale_linters/lua/lua_language_server.vim
index ebddd4b5..0892ad3b 100644
--- a/ale_linters/lua/lua_language_server.vim
+++ b/ale_linters/lua/lua_language_server.vim
@@ -6,7 +6,7 @@ call ale#Set('lua_language_server_config', {})
call ale#linter#Define('lua', {
\ 'name': 'lua_language_server',
-\ 'aliases': ['lua-language-server'],
+\ 'aliases': ['lua-language-server', 'lua_ls'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'lua_language_server_executable')},
\ 'command': '%e',
diff --git a/ale_linters/nix/rnix_lsp.vim b/ale_linters/nix/rnix_lsp.vim
index 949bed1c..99c0fbfa 100644
--- a/ale_linters/nix/rnix_lsp.vim
+++ b/ale_linters/nix/rnix_lsp.vim
@@ -9,6 +9,7 @@ endfunction
call ale#linter#Define('nix', {
\ 'name': 'rnix_lsp',
+\ 'aliases': ['rnix'],
\ 'lsp': 'stdio',
\ 'executable': 'rnix-lsp',
\ 'command': '%e',
diff --git a/ale_linters/ocaml/ols.vim b/ale_linters/ocaml/ols.vim
index ec71bdb4..b26c7826 100644
--- a/ale_linters/ocaml/ols.vim
+++ b/ale_linters/ocaml/ols.vim
@@ -6,6 +6,7 @@ call ale#Set('ocaml_ols_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#linter#Define('ocaml', {
\ 'name': 'ols',
+\ 'aliases': ['ocaml-language-server'],
\ 'lsp': 'stdio',
\ 'executable': function('ale#handlers#ols#GetExecutable'),
\ 'command': function('ale#handlers#ols#GetCommand'),
diff --git a/ale_linters/puppet/languageserver.vim b/ale_linters/puppet/languageserver.vim
index 2078695f..c6b12662 100644
--- a/ale_linters/puppet/languageserver.vim
+++ b/ale_linters/puppet/languageserver.vim
@@ -29,6 +29,7 @@ endfunction
call ale#linter#Define('puppet', {
\ 'name': 'languageserver',
+\ 'aliases': ['puppet_languageserver'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'puppet_languageserver_executable')},
\ 'command': '%e --stdio',
diff --git a/ale_linters/purescript/ls.vim b/ale_linters/purescript/ls.vim
index a20fae47..1eaf2af7 100644
--- a/ale_linters/purescript/ls.vim
+++ b/ale_linters/purescript/ls.vim
@@ -41,6 +41,7 @@ endfunction
call ale#linter#Define('purescript', {
\ 'name': 'purescript-language-server',
+\ 'aliases': ['purescriptls'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#purescript#ls#GetExecutable'),
\ 'command': function('ale_linters#purescript#ls#GetCommand'),
diff --git a/ale_linters/python/jedils.vim b/ale_linters/python/jedils.vim
index d3e15bf2..e82abd1b 100644
--- a/ale_linters/python/jedils.vim
+++ b/ale_linters/python/jedils.vim
@@ -30,6 +30,7 @@ endfunction
call ale#linter#Define('python', {
\ 'name': 'jedils',
+\ 'aliases': ['jedi_language_server'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#python#jedils#GetExecutable'),
\ 'command': function('ale_linters#python#jedils#GetCommand'),
diff --git a/ale_linters/r/languageserver.vim b/ale_linters/r/languageserver.vim
index bab869d1..1ff23fa9 100644
--- a/ale_linters/r/languageserver.vim
+++ b/ale_linters/r/languageserver.vim
@@ -19,6 +19,7 @@ endfunction
call ale#linter#Define('r', {
\ 'name': 'languageserver',
+\ 'aliases': ['r_language_server'],
\ 'lsp': 'stdio',
\ 'lsp_config': {b -> ale#Var(b, 'r_languageserver_config')},
\ 'executable': 'Rscript',
diff --git a/ale_linters/reason/ls.vim b/ale_linters/reason/ls.vim
index fb1114ae..a831b506 100644
--- a/ale_linters/reason/ls.vim
+++ b/ale_linters/reason/ls.vim
@@ -15,6 +15,7 @@ endfunction
call ale#linter#Define('reason', {
\ 'name': 'reason-language-server',
+\ 'aliases': ['reason_ls'],
\ 'lsp': 'stdio',
\ 'executable': {buffer -> ale#Var(buffer, 'reason_ls_executable')},
\ 'command': '%e',
diff --git a/ale_linters/reason/ols.vim b/ale_linters/reason/ols.vim
index 9fbd9b4f..e1f408f0 100644
--- a/ale_linters/reason/ols.vim
+++ b/ale_linters/reason/ols.vim
@@ -6,6 +6,7 @@ call ale#Set('reason_ols_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#linter#Define('reason', {
\ 'name': 'ols',
+\ 'aliases': ['ocaml-language-server'],
\ 'lsp': 'stdio',
\ 'executable': function('ale#handlers#ols#GetExecutable'),
\ 'command': function('ale#handlers#ols#GetCommand'),
diff --git a/ale_linters/rust/analyzer.vim b/ale_linters/rust/analyzer.vim
index 3ead3871..e3141cd3 100644
--- a/ale_linters/rust/analyzer.vim
+++ b/ale_linters/rust/analyzer.vim
@@ -28,6 +28,7 @@ endfunction
call ale#linter#Define('rust', {
\ 'name': 'analyzer',
+\ 'aliases': ['rust_analyzer'],
\ 'lsp': 'stdio',
\ 'initialization_options': {b -> ale#Var(b, 'rust_analyzer_config')},
\ 'executable': {b -> ale#Var(b, 'rust_analyzer_executable')},
diff --git a/ale_linters/swift/sourcekitlsp.vim b/ale_linters/swift/sourcekitlsp.vim
index 560893bf..a403dcc1 100644
--- a/ale_linters/swift/sourcekitlsp.vim
+++ b/ale_linters/swift/sourcekitlsp.vim
@@ -5,6 +5,7 @@ call ale#Set('sourcekit_lsp_executable', 'sourcekit-lsp')
call ale#linter#Define('swift', {
\ 'name': 'sourcekitlsp',
+\ 'aliases': ['sourcekit'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'sourcekit_lsp_executable')},
\ 'command': '%e',
diff --git a/ale_linters/terraform/terraform_ls.vim b/ale_linters/terraform/terraform_ls.vim
index ab35126e..7dc77941 100644
--- a/ale_linters/terraform/terraform_ls.vim
+++ b/ale_linters/terraform/terraform_ls.vim
@@ -30,6 +30,7 @@ endfunction
call ale#linter#Define('terraform', {
\ 'name': 'terraform_ls',
+\ 'aliases': ['terraformls'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'terraform_ls_executable')},
\ 'command': function('ale_linters#terraform#terraform_ls#GetCommand'),
diff --git a/ale_linters/vue/vls.vim b/ale_linters/vue/vls.vim
index 4bd75286..009effd0 100644
--- a/ale_linters/vue/vls.vim
+++ b/ale_linters/vue/vls.vim
@@ -12,6 +12,7 @@ endfunction
call ale#linter#Define('vue', {
\ 'name': 'vls',
+\ 'aliases': ['vuels'],
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#path#FindExecutable(b, 'vue_vls', [
\ 'node_modules/.bin/vls',
diff --git a/ale_linters/yaml/ls.vim b/ale_linters/yaml/ls.vim
index 8e3f6d00..79510ffe 100644
--- a/ale_linters/yaml/ls.vim
+++ b/ale_linters/yaml/ls.vim
@@ -26,6 +26,7 @@ endfunction
call ale#linter#Define('yaml', {
\ 'name': 'yaml-language-server',
+\ 'aliases': ['yamlls'],
\ 'lsp': 'stdio',
\ 'executable': function('ale_linters#yaml#ls#GetExecutable'),
\ 'command': function('ale_linters#yaml#ls#GetCommand'),