mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add openscad-lsp
This commit is contained in:
@@ -932,6 +932,21 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"openscad": [
|
||||
{
|
||||
"command": "openscad-lsp",
|
||||
"url": "https://github.com/Leathong/openscad-LSP",
|
||||
"description": "A LSP (Language Server Protocol) server for OpenSCAD.",
|
||||
"requires": [
|
||||
],
|
||||
"vim_plugin": {
|
||||
"extensions": [
|
||||
"scad"
|
||||
],
|
||||
"name": "https://github.com/sirtaj/vim-openscad"
|
||||
}
|
||||
}
|
||||
],
|
||||
"perl": [
|
||||
{
|
||||
"command": "perlnavigator",
|
||||
|
||||
18
settings/openscad-lsp.vim
Normal file
18
settings/openscad-lsp.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
augroup vim_lsp_settings_openscad_lsp
|
||||
au!
|
||||
LspRegisterServer {
|
||||
\ 'name': 'openscad-lsp',
|
||||
\ 'cmd': {server_info->lsp_settings#get('openscad-lsp', 'cmd', [lsp_settings#exec_path('openscad-lsp')]+lsp_settings#get('openscad-lsp', 'args', ['--stdio']))},
|
||||
\ 'root_uri':{server_info->lsp_settings#get('openscad-lsp', 'root_uri', lsp_settings#root_uri('openscad-lsp'))},
|
||||
\ 'initialization_options': lsp_settings#get('openscad-lsp', 'initialization_options', {
|
||||
\ 'completion': {
|
||||
\ 'autoimport': { 'enable': v:true },
|
||||
\ },
|
||||
\ }),
|
||||
\ 'allowlist': lsp_settings#get('openscad-lsp', 'allowlist', ['openscad']),
|
||||
\ 'blocklist': lsp_settings#get('openscad-lsp', 'blocklist', []),
|
||||
\ 'config': lsp_settings#get('openscad-lsp', 'config', lsp_settings#server_config('openscad-lsp')),
|
||||
\ 'workspace_config': lsp_settings#get('openscad-lsp', 'workspace_config', {}),
|
||||
\ 'semantic_highlight': lsp_settings#get('openscad-lsp', 'semantic_highlight', {}),
|
||||
\ }
|
||||
augroup END
|
||||
Reference in New Issue
Block a user