mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add ols
This commit is contained in:
7
installer/install-ols.cmd
Normal file
7
installer/install-ols.cmd
Normal 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
6
installer/install-ols.sh
Executable 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_
|
||||
@@ -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
14
settings/ols.vim
Normal 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
|
||||
Reference in New Issue
Block a user