mirror of
https://github.com/dense-analysis/ale
synced 2025-01-29 19:42:55 +00:00
rename command variable to *_adals_* instead of *_lsp_* and whole name to adals instead of adalsp
This commit is contained in:
parent
8239b76c5a
commit
2f181658e6
16
ale_linters/ada/adals.vim
Normal file
16
ale_linters/ada/adals.vim
Normal file
@ -0,0 +1,16 @@
|
||||
" Author: Bartek Jasicki http://github.com/thindil
|
||||
" Description: Support for Ada Language Server
|
||||
|
||||
call ale#Set('ada_adals_executable', 'ada_language_server')
|
||||
|
||||
function! ale_linters#ada#adals#GetRootDirectory(buffer) abort
|
||||
return fnamemodify(bufname(a:buffer), ':p:h')
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('ada', {
|
||||
\ 'name': 'adals',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable': {b -> ale#Var(b, 'ada_adals_executable')},
|
||||
\ 'command': '%e',
|
||||
\ 'project_root': function('ale_linters#ada#adals#GetRootDirectory'),
|
||||
\})
|
@ -1,16 +0,0 @@
|
||||
" 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'),
|
||||
\})
|
@ -35,8 +35,8 @@ g:ale_ada_gnatpp_options *g:ale_ada_gnatpp_options*
|
||||
===============================================================================
|
||||
ada-language-server *ale-ada-language-server*
|
||||
|
||||
g:ale_ada_lsp_executable *g:ale_ada_lsp_executable*
|
||||
*b:ale_ada_lsp_executable*
|
||||
g:ale_ada_adals_executable *g:ale_ada_adals_executable*
|
||||
*b:ale_ada_adals_executable*
|
||||
Type: |String|
|
||||
Default: `'ada_language_server'`
|
||||
|
||||
|
9
test/command_callback/test_adals_command_callbacks.vader
Normal file
9
test/command_callback/test_adals_command_callbacks.vader
Normal file
@ -0,0 +1,9 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('ada', 'adals')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(Sets adals executable):
|
||||
let g:ale_ada_adals_executable = '/path/to /Ada'
|
||||
AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada')
|
@ -1,9 +0,0 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('ada', 'adalsp')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(Sets adalsp executable):
|
||||
let g:ale_ada_lsp_executable = '/path/to /Ada'
|
||||
AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada')
|
Loading…
Reference in New Issue
Block a user