-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This addresses #724 Signed-off-by: Siddharth Sharma <siddharth.sharma@ericsson.com>
- Loading branch information
Showing
6 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@echo off | ||
|
||
setlocal | ||
set VERSION=0.7.6 | ||
curl -L -o yang-language-server.zip https://github.com/TypeFox/yang-lsp/releases/download/v%VERSION%/yang-language-server_%VERSION%.zip | ||
call "%%~dp0\run_unzip.cmd" yang-language-server.zip | ||
del yang-language-server.zip | ||
|
||
echo @echo off^ | ||
|
||
setlocal^ | ||
|
||
%%~dp0\yang-language-server-%VERSION%\bin\yang-language-server.bat %%* ^ | ||
|
||
> yang-lsp.cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
VERSION=0.7.6 | ||
curl -L -o yang-language-server.zip https://github.com/TypeFox/yang-lsp/releases/download/v$VERSION/yang-language-server_$VERSION.zip | ||
unzip yang-language-server.zip | ||
rm yang-language-server.zip | ||
ln -sf yang-language-server-$VERSION/bin/yang-language-server yang-lsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
augroup vim_lsp_settings_yang_lsp | ||
au! | ||
LspRegisterServer { | ||
\ 'name': 'yang-lsp', | ||
\ 'cmd': {server_info->lsp_settings#get('yang-lsp', 'cmd', [lsp_settings#exec_path('yang-lsp')]+lsp_settings#get('yang-lsp', 'args', []))}, | ||
\ 'root_uri':{server_info->lsp_settings#get('yang-lsp', 'root_uri', lsp_settings#root_uri('yang-lsp'))}, | ||
\ 'initialization_options': lsp_settings#get('yang-lsp', 'initialization_options', v:null), | ||
\ 'allowlist': lsp_settings#get('yang-lsp', 'allowlist', ['yang']), | ||
\ 'blocklist': lsp_settings#get('yang-lsp', 'blocklist', []), | ||
\ 'config': lsp_settings#get('yang-lsp', 'config', lsp_settings#server_config('yang-lsp')), | ||
\ 'workspace_config': lsp_settings#get('yang-lsp', 'workspace_config', {}), | ||
\ 'semantic_highlight': lsp_settings#get('yang-lsp', 'semantic_highlight', {}), | ||
\ } | ||
augroup END |