nvim/pack/acp/opt/nvim-lspconfig/lua/lspconfig/server_configurations/gdscript.lua

20 lines
453 B
Lua
Raw Normal View History

2022-01-10 11:08:46 +00:00
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'nc', 'localhost', '6008' },
filetypes = { 'gd', 'gdscript', 'gdscript3' },
root_dir = util.root_pattern('project.godot', '.git'),
},
docs = {
description = [[
https://github.com/godotengine/godot
Language server for GDScript, used by Godot Engine.
]],
default_config = {
root_dir = [[util.root_pattern("project.godot", ".git")]],
},
},
}