added support for Ada Language Server
This commit is contained in:
parent
3fe2223a48
commit
87a0227d01
1 changed files with 16 additions and 0 deletions
16
ale_linters/ada/adalsp.vim
Normal file
16
ale_linters/ada/adalsp.vim
Normal file
|
@ -0,0 +1,16 @@
|
|||
" Author: Bartek Jasicki http://github.com/thindil
|
||||
" Description: Support for Ada Language Server
|
||||
|
||||
call ale#Set('ada_lsp_executable', 'ada_language_server')
|
||||
|
||||
function! ale_linters#ada#adalsp#GetRootDirectory(buffer) abort
|
||||
return fnamemodify(bufname(a:buffer), ':p:h')
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('ada', {
|
||||
\ 'name': 'adalsp',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable': {b -> ale#Var(b, 'ada_lsp_executable')},
|
||||
\ 'command': '%e',
|
||||
\ 'project_root': function('ale_linters#ada#adalsp#GetRootDirectory'),
|
||||
\})
|
Reference in a new issue