summaryrefslogtreecommitdiff
path: root/ale_linters/ada
diff options
context:
space:
mode:
authorBartek thindil Jasicki <thindil@laeran.pl>2019-10-11 09:43:55 +0200
committerBartek thindil Jasicki <thindil@laeran.pl>2019-10-11 09:43:55 +0200
commit87a0227d01df14c9de7d3469b54cb73a98511ae2 (patch)
treea2728511e36d1c1c652ff8062837638c31fb842a /ale_linters/ada
parent3fe2223a48465c58c48a5a6a30ecf13ab92f7b97 (diff)
downloadale-87a0227d01df14c9de7d3469b54cb73a98511ae2.zip
added support for Ada Language Server
Diffstat (limited to 'ale_linters/ada')
-rw-r--r--ale_linters/ada/adalsp.vim16
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'),
+\})