godot setup
This commit is contained in:
+14
-1
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user