summaryrefslogtreecommitdiff
path: root/ale_linters/ada
diff options
context:
space:
mode:
authorBartek Jasicki <thindil@laeran.pl>2019-11-05 17:58:53 +0100
committerGitHub <noreply@github.com>2019-11-05 17:58:53 +0100
commit3c80c67633484c9bf3fd957b8985eee6f23a1a9e (patch)
tree52ad47e6e712da604a8454797bd80f8e6f647a25 /ale_linters/ada
parent3e4a23cb14254191249150e81ba8b47256eb98c2 (diff)
downloadale-3c80c67633484c9bf3fd957b8985eee6f23a1a9e.zip
Update ale_linters/ada/adals.vim
Co-Authored-By: timlag1305 <timlag1305@gmail.com>
Diffstat (limited to 'ale_linters/ada')
-rw-r--r--ale_linters/ada/adals.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/ada/adals.vim b/ale_linters/ada/adals.vim
index 354156f0..e4f86b83 100644
--- a/ale_linters/ada/adals.vim
+++ b/ale_linters/ada/adals.vim
@@ -2,6 +2,15 @@
" Description: Support for Ada Language Server
call ale#Set('ada_adals_executable', 'ada_language_server')
+call ale#Set('ada_adals_project, 'default.gpr')
+call ale#Set('ada_adals_encoding', 'utf-8')
+
+function! ale_linters#ada#adals#GetAdaLSConfig(buffer) abort
+ return {
+ \ 'ada.projectFile': ale#Var(a:buffer, 'ada_adals_project'),
+ \ 'ada.defaultCharset': ale#Var(a:buffer, 'ada_adals_encoding')
+ \}
+endfunction
function! ale_linters#ada#adals#GetRootDirectory(buffer) abort
return fnamemodify(bufname(a:buffer), ':p:h')