-
-
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.
- Loading branch information
1 parent
98da469
commit 615863a
Showing
5 changed files
with
47 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
|
||
curl -o install.vsh "https://raw.githubusercontent.com/v-analyzer/v-analyzer/master/install.vsh" | ||
|
||
for /f "delims=" %%a in (install.vsh) do ( | ||
set line=%%a | ||
setlocal enabledelayedexpansion | ||
echo !line:'~/.config/v-analyzer='.!>>install2.vsh | ||
endlocal | ||
) | ||
|
||
v install2.vsh | ||
del install.vsh install2.vsh | ||
move bin\v-analyzer.exe . |
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,7 @@ | ||
#!/bin/sh | ||
|
||
url="https://raw.githubusercontent.com/v-analyzer/v-analyzer/master/install.vsh" | ||
|
||
# Replace hard-coded installation path "~/.config/v-analyzer" with "." | ||
v -e "$(curl -fsSL "$url" | sed 's#~/.config/v-analyzer#.#g')" | ||
mv bin/v-analyzer v-analyzer |
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_vlang_vls | ||
au! | ||
LspRegisterServer { | ||
\ 'name': 'v-analyzer', | ||
\ 'cmd': {server_info->lsp_settings#get('v-analyzer', 'cmd', [lsp_settings#exec_path('v-analyzer')]+lsp_settings#get('v-analyzer', 'args', []))}, | ||
\ 'root_uri':{server_info->lsp_settings#get('v-analyzer', 'root_uri', lsp_settings#root_uri('v-analyzer'))}, | ||
\ 'initialization_options': lsp_settings#get('v-analyzer', 'initialization_options', v:null), | ||
\ 'allowlist': lsp_settings#get('v-analyzer', 'allowlist', ['vlang']), | ||
\ 'blocklist': lsp_settings#get('v-analyzer', 'blocklist', []), | ||
\ 'config': lsp_settings#get('v-analyzer', 'config', lsp_settings#server_config('v-analyzer')), | ||
\ 'workspace_config': lsp_settings#get('v-analyzer', 'workspace_config', {}), | ||
\ 'semantic_highlight': lsp_settings#get('v-analyzer', 'semantic_highlight', {}), | ||
\ } | ||
augroup END |