summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorBen Spiers <ben.spiers22@gmail.com>2018-07-19 22:27:47 +0100
committerBen Spiers <ben.spiers22@gmail.com>2018-07-19 22:27:47 +0100
commite8bea510df1ce952ef877aec3c58b3c39d98b7ae (patch)
tree5d897fbe534b3f8e190e2ad4ebae6852749ef6f4 /ale_linters
parent324838adae32f4062c2099c297530588fb80a1a3 (diff)
downloadale-e8bea510df1ce952ef877aec3c58b3c39d98b7ae.zip
Add documentation and testing for fortls
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/fortran/language_server.vim6
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',
\})