diff options
author | Bartek thindil Jasicki <thindil@laeran.pl> | 2019-10-11 09:43:55 +0200 |
---|---|---|
committer | Bartek thindil Jasicki <thindil@laeran.pl> | 2019-10-11 09:43:55 +0200 |
commit | 87a0227d01df14c9de7d3469b54cb73a98511ae2 (patch) | |
tree | a2728511e36d1c1c652ff8062837638c31fb842a /ale_linters/ada | |
parent | 3fe2223a48465c58c48a5a6a30ecf13ab92f7b97 (diff) | |
download | ale-87a0227d01df14c9de7d3469b54cb73a98511ae2.zip |
added support for Ada Language Server
Diffstat (limited to 'ale_linters/ada')
-rw-r--r-- | ale_linters/ada/adalsp.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ale_linters/ada/adalsp.vim b/ale_linters/ada/adalsp.vim new file mode 100644 index 00000000..10c4be07 --- /dev/null +++ b/ale_linters/ada/adalsp.vim @@ -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'), +\}) |