diff options
author | w0rp <devw0rp@gmail.com> | 2018-04-27 22:52:11 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-04-27 22:52:11 +0100 |
commit | 6ab3fdc4d0566c09e9456c3bf1b7aa92747fd0aa (patch) | |
tree | 84362ca60df1e82d69e709e11688062d59c1ba79 /ale_linters/php | |
parent | d1d705cc8484d935c0c18857f152027491df355e (diff) | |
download | ale-6ab3fdc4d0566c09e9456c3bf1b7aa92747fd0aa.zip |
Close #1521 - Allow the language to be set with simple strings for LSP linters
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/langserver.vim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ale_linters/php/langserver.vim b/ale_linters/php/langserver.vim index 7e1321f9..0f3ead66 100644 --- a/ale_linters/php/langserver.vim +++ b/ale_linters/php/langserver.vim @@ -14,10 +14,6 @@ function! ale_linters#php#langserver#GetCommand(buffer) abort return 'php ' . ale#Escape(ale_linters#php#langserver#GetExecutable(a:buffer)) endfunction -function! ale_linters#php#langserver#GetLanguage(buffer) abort - return 'php' -endfunction - function! ale_linters#php#langserver#GetProjectRoot(buffer) abort let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git') @@ -29,6 +25,6 @@ call ale#linter#Define('php', { \ 'lsp': 'stdio', \ 'executable_callback': 'ale_linters#php#langserver#GetExecutable', \ 'command_callback': 'ale_linters#php#langserver#GetCommand', -\ 'language_callback': 'ale_linters#php#langserver#GetLanguage', +\ 'language': 'php', \ 'project_root_callback': 'ale_linters#php#langserver#GetProjectRoot', \}) |