From 87a0227d01df14c9de7d3469b54cb73a98511ae2 Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 11 Oct 2019 09:43:55 +0200 Subject: [PATCH] added support for Ada Language Server --- ale_linters/ada/adalsp.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ale_linters/ada/adalsp.vim 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'), +\})