diff options
-rw-r--r-- | ale_linters/ada/adals.vim | 9 |
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') |