summaryrefslogtreecommitdiff
path: root/ale_linters/tex
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-02-22 18:05:04 +0000
committerw0rp <devw0rp@gmail.com>2019-02-22 18:05:04 +0000
commit883978ece93bd19250d6d7e8b9659b48f23522e2 (patch)
tree8ac9417b7c980906295745cc5ea709b91a789390 /ale_linters/tex
parentf53b25d2567a2f7495dab444680596f48de427d1 (diff)
downloadale-883978ece93bd19250d6d7e8b9659b48f23522e2.zip
#2132 - Replace all uses of foo_callback with foo
Diffstat (limited to 'ale_linters/tex')
-rw-r--r--ale_linters/tex/chktex.vim2
-rw-r--r--ale_linters/tex/lacheck.vim2
-rw-r--r--ale_linters/tex/textlint.vim4
3 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/tex/chktex.vim b/ale_linters/tex/chktex.vim
index 7f1b0c72..160baf0d 100644
--- a/ale_linters/tex/chktex.vim
+++ b/ale_linters/tex/chktex.vim
@@ -49,6 +49,6 @@ endfunction
call ale#linter#Define('tex', {
\ 'name': 'chktex',
\ 'executable': 'chktex',
-\ 'command_callback': 'ale_linters#tex#chktex#GetCommand',
+\ 'command': function('ale_linters#tex#chktex#GetCommand'),
\ 'callback': 'ale_linters#tex#chktex#Handle'
\})
diff --git a/ale_linters/tex/lacheck.vim b/ale_linters/tex/lacheck.vim
index ee09fb41..19d69403 100644
--- a/ale_linters/tex/lacheck.vim
+++ b/ale_linters/tex/lacheck.vim
@@ -37,7 +37,7 @@ endfunction
call ale#linter#Define('tex', {
\ 'name': 'lacheck',
-\ 'executable_callback': ale#VarFunc('tex_lacheck_executable'),
+\ 'executable': {b -> ale#Var(b, 'tex_lacheck_executable')},
\ 'command': '%e %t',
\ 'callback': 'ale_linters#tex#lacheck#Handle'
\})
diff --git a/ale_linters/tex/textlint.vim b/ale_linters/tex/textlint.vim
index 0266ed85..5edac46d 100644
--- a/ale_linters/tex/textlint.vim
+++ b/ale_linters/tex/textlint.vim
@@ -3,7 +3,7 @@
call ale#linter#Define('tex', {
\ 'name': 'textlint',
-\ 'executable_callback': 'ale#handlers#textlint#GetExecutable',
-\ 'command_callback': 'ale#handlers#textlint#GetCommand',
+\ 'executable': function('ale#handlers#textlint#GetExecutable'),
+\ 'command': function('ale#handlers#textlint#GetCommand'),
\ 'callback': 'ale#handlers#textlint#HandleTextlintOutput',
\})