1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/gdscript.lua
2021-10-05 15:13:10 +08:00

23 lines
530 B
Lua

local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.gdscript = {
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")]],
},
},
}
-- vim:et ts=2 sw=2