mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Add godot (#365)
This commit is contained in:
@@ -230,6 +230,18 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"gdscript": [
|
||||
{
|
||||
"command": "godot",
|
||||
"requires": []
|
||||
}
|
||||
],
|
||||
"gdscript3": [
|
||||
{
|
||||
"command": "godot",
|
||||
"requires": []
|
||||
}
|
||||
],
|
||||
"glsl": [
|
||||
{
|
||||
"command": "glslls",
|
||||
|
||||
14
settings/godot.vim
Normal file
14
settings/godot.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
augroup vim_lsp_settings_godot
|
||||
au!
|
||||
LspRegisterServer {
|
||||
\ 'name': 'godot',
|
||||
\ 'tcp': {server_info->lsp_settings#get('godot', 'tcp', '127.0.0.1:6008')},
|
||||
\ 'root_uri':{server_info->lsp_settings#get('godot', 'root_uri', lsp_settings#root_uri('godot'))},
|
||||
\ 'initialization_options': lsp_settings#get('godot', 'initialization_options', v:null),
|
||||
\ 'allowlist': lsp_settings#get('godot', 'allowlist', ['gdscript3', 'gdscript']),
|
||||
\ 'blocklist': lsp_settings#get('godot', 'blocklist', []),
|
||||
\ 'config': lsp_settings#get('godot', 'config', lsp_settings#server_config('godot')),
|
||||
\ 'workspace_config': lsp_settings#get('godot', 'workspace_config', {}),
|
||||
\ 'semantic_highlight': lsp_settings#get('godot', 'semantic_highlight', {}),
|
||||
\ }
|
||||
augroup END
|
||||
Reference in New Issue
Block a user