This commit is contained in:
Yasuhiro Matsumoto
2022-08-31 02:29:30 +09:00
parent 16f65b3d5e
commit 06de00dfae
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
@echo off
git clone --depth=1 https://github.com/DanielGavin/ols
cd ols
.\build.bat
copy ols.exe ..
rd /Q /S ols

6
installer/install-ols.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
set -e
git clone --depth=1 https://github.com/DanielGavin/ols_
cd ols_ && ./build.sh && cp ols .. && cd .. && rm -rf ols_

View File

@@ -874,6 +874,22 @@
}
}
],
"odin": [
{
"command": "ols",
"url": "https://github.com/DanielGavin/ols",
"description": "Language server for Odin",
"requires": [
"odin"
],
"vim_plugin": {
"extensions": [
"odin"
],
"name": "https://github.com/Tetralux/odin.vim"
}
}
],
"perl": [
{
"command": "perlnavigator",

14
settings/ols.vim Normal file
View File

@@ -0,0 +1,14 @@
augroup vim_lsp_settings_ols
au!
LspRegisterServer {
\ 'name': 'ols',
\ 'cmd': {server_info->lsp_settings#get('ols', 'cmd', [lsp_settings#exec_path('ols')]+lsp_settings#get('ols', 'args', []))},
\ 'root_uri':{server_info->lsp_settings#get('ols', 'root_uri', lsp_settings#root_uri('ols'))},
\ 'initialization_options': lsp_settings#get('ols', 'initialization_options', v:null),
\ 'allowlist': lsp_settings#get('ols', 'allowlist', ['odin']),
\ 'blocklist': lsp_settings#get('ols', 'blocklist', []),
\ 'config': lsp_settings#get('ols', 'config', lsp_settings#server_config('ols')),
\ 'workspace_config': lsp_settings#get('ols', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('ols', 'semantic_highlight', {}),
\ }
augroup END