summaryrefslogtreecommitdiff
path: root/ale_linters/scala
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/scala')
-rw-r--r--ale_linters/scala/fsc.vim2
-rw-r--r--ale_linters/scala/sbtserver.vim4
-rw-r--r--ale_linters/scala/scalac.vim2
-rw-r--r--ale_linters/scala/scalastyle.vim2
4 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/scala/fsc.vim b/ale_linters/scala/fsc.vim
index fbdce20e..94135235 100644
--- a/ale_linters/scala/fsc.vim
+++ b/ale_linters/scala/fsc.vim
@@ -7,7 +7,7 @@ endfunction
call ale#linter#Define('scala', {
\ 'name': 'fsc',
-\ 'executable_callback': {buf -> s:IsSbt(buf) ? '' : 'fsc'},
+\ 'executable': {buf -> s:IsSbt(buf) ? '' : 'fsc'},
\ 'command': '%e -Ystop-after:parser %t',
\ 'callback': 'ale#handlers#scala#HandleScalacLintFormat',
\ 'output_stream': 'stderr',
diff --git a/ale_linters/scala/sbtserver.vim b/ale_linters/scala/sbtserver.vim
index 694241d7..d4f137c2 100644
--- a/ale_linters/scala/sbtserver.vim
+++ b/ale_linters/scala/sbtserver.vim
@@ -25,7 +25,7 @@ endfunction
call ale#linter#Define('scala', {
\ 'name': 'sbtserver',
\ 'lsp': 'socket',
-\ 'address_callback': 'ale_linters#scala#sbtserver#GetAddress',
+\ 'address': function('ale_linters#scala#sbtserver#GetAddress'),
\ 'language': 'scala',
-\ 'project_root_callback': 'ale_linters#scala#sbtserver#GetProjectRoot',
+\ 'project_root': function('ale_linters#scala#sbtserver#GetProjectRoot'),
\})
diff --git a/ale_linters/scala/scalac.vim b/ale_linters/scala/scalac.vim
index 3dbdd925..1dd579b4 100644
--- a/ale_linters/scala/scalac.vim
+++ b/ale_linters/scala/scalac.vim
@@ -8,7 +8,7 @@ endfunction
call ale#linter#Define('scala', {
\ 'name': 'scalac',
-\ 'executable_callback': {buf -> s:IsSbt(buf) ? '' : 'scalac'},
+\ 'executable': {buf -> s:IsSbt(buf) ? '' : 'scalac'},
\ 'command': '%e -Ystop-after:parser %t',
\ 'callback': 'ale#handlers#scala#HandleScalacLintFormat',
\ 'output_stream': 'stderr',
diff --git a/ale_linters/scala/scalastyle.vim b/ale_linters/scala/scalastyle.vim
index 42228cf6..6e9e4c13 100644
--- a/ale_linters/scala/scalastyle.vim
+++ b/ale_linters/scala/scalastyle.vim
@@ -81,6 +81,6 @@ call ale#linter#Define('scala', {
\ 'name': 'scalastyle',
\ 'executable': 'scalastyle',
\ 'output_stream': 'stdout',
-\ 'command_callback': 'ale_linters#scala#scalastyle#GetCommand',
+\ 'command': function('ale_linters#scala#scalastyle#GetCommand'),
\ 'callback': 'ale_linters#scala#scalastyle#Handle',
\})