diff options
author | Ben Spiers <ben.spiers22@gmail.com> | 2018-07-19 22:27:47 +0100 |
---|---|---|
committer | Ben Spiers <ben.spiers22@gmail.com> | 2018-07-19 22:27:47 +0100 |
commit | e8bea510df1ce952ef877aec3c58b3c39d98b7ae (patch) | |
tree | 5d897fbe534b3f8e190e2ad4ebae6852749ef6f4 /ale_linters/fortran/language_server.vim | |
parent | 324838adae32f4062c2099c297530588fb80a1a3 (diff) | |
download | ale-e8bea510df1ce952ef877aec3c58b3c39d98b7ae.zip |
Add documentation and testing for fortls
Diffstat (limited to 'ale_linters/fortran/language_server.vim')
-rw-r--r-- | ale_linters/fortran/language_server.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/fortran/language_server.vim b/ale_linters/fortran/language_server.vim index c0dd51bf..fd763fcf 100644 --- a/ale_linters/fortran/language_server.vim +++ b/ale_linters/fortran/language_server.vim @@ -8,6 +8,10 @@ function! ale_linters#fortran#language_server#GetExecutable(buffer) abort return ale#Var(a:buffer, 'fortran_language_server_executable') endfunction +function! ale_linters#fortran#language_server#GetCommand(buffer) abort + return ale#Escape(ale_linters#fortran#language_server#GetExecutable(a:buffer)) +endfunction + function! ale_linters#fortran#language_server#GetProjectRoot(buffer) abort let l:fortls_file = ale#path#FindNearestFile(a:buffer, '.fortls') @@ -18,6 +22,6 @@ call ale#linter#Define('fortran', { \ 'name': 'language_server', \ 'lsp': 'stdio', \ 'executable_callback': 'ale_linters#fortran#language_server#GetExecutable', -\ 'command_callback': 'ale_linters#fortran#language_server#GetExecutable', +\ 'command_callback': 'ale_linters#fortran#language_server#GetCommand', \ 'project_root_callback': 'ale_linters#fortran#language_server#GetProjectRoot', \}) |