godot setup

This commit is contained in:
2026-06-22 20:42:06 -07:00
parent 0a6c51ad4f
commit 82ef6e8679
2 changed files with 33 additions and 40 deletions
+14 -1
View File
@@ -72,6 +72,8 @@ end
-- flags = lsp_flags,
--}
local godot_port = os.getenv 'GDScript_Port' or '6005'
local lsps = {
{
"clangd",
@@ -103,7 +105,18 @@ local lsps = {
'pylsp'
},
root_markers = { '.git' },
filetype = { 'py' },
filetypes = { 'py' },
on_attach = on_attach,
}
},
{
"godot-lsp",
{
cmd = {
vim.lsp.rpc.connect('127.0.0.1', tonumber(port))
},
filetypes = { 'gd', 'gdscript', 'gdscript3' },
root_markerts = {'project.godot', '.git' },
on_attach = on_attach,
}
}