18 lines
514 B
Plaintext
18 lines
514 B
Plaintext
|
Before:
|
||
|
runtime autoload/ale/lsp.vim
|
||
|
|
||
|
let g:conn_id = ale#lsp#Register('executable', '/foo/bar', {})
|
||
|
|
||
|
After:
|
||
|
Restore
|
||
|
|
||
|
unlet! g:conn_id
|
||
|
|
||
|
runtime autoload/ale/lsp.vim
|
||
|
|
||
|
Execute(Only send updates when the configuration dictionary changes):
|
||
|
AssertEqual 0, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {})
|
||
|
AssertEqual 1, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {'a': 1})
|
||
|
AssertEqual 0, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {'a': 1})
|
||
|
AssertEqual 1, ale#lsp#UpdateConfig(g:conn_id, bufnr(''), {})
|