feat(lsp): Move LSP config for godot and rust for 0.11

This commit is contained in:
2025-04-01 23:37:18 +02:00
parent 2cc2998907
commit 8460677953
3 changed files with 39 additions and 32 deletions

17
lsp/gdscript.lua Normal file
View File

@ -0,0 +1,17 @@
local port = os.getenv 'GDScript_Port' or '6005'
local cmd = vim.lsp.rpc.connect('127.0.0.1', tonumber(port))
return {
default_config = {
cmd = cmd,
filetypes = { 'gd', 'gdscript', 'gdscript3' },
root_markers = { '.git', 'project.godot' },
},
docs = {
description = [[
https://github.com/godotengine/godot
Language server for GDScript, used by Godot Engine.
]],
},
}