From bfb85f96207f5f83427f466ed55a45a69f25a6d3 Mon Sep 17 00:00:00 2001 From: "MengChen. Huang" Date: Sat, 31 Jul 2021 06:22:25 +0200 Subject: [PATCH] add gdscript lsp support (#1164) --- ftplugin/gdscript.lua | 1 + lua/default-config.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 ftplugin/gdscript.lua diff --git a/ftplugin/gdscript.lua b/ftplugin/gdscript.lua new file mode 100644 index 00000000..b23a20e2 --- /dev/null +++ b/ftplugin/gdscript.lua @@ -0,0 +1 @@ +require("lsp").setup "gdscript" diff --git a/lua/default-config.lua b/lua/default-config.lua index 41636757..0ef666aa 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -1141,6 +1141,22 @@ lvim.lang = { }, }, }, + gdscript = { + formatter = {}, + linters = {}, + lsp = { + provider = "gdscript", + setup = { + cmd = { + "nc", + "localhost", + "6008", + }, + on_attach = common_on_attach, + capabilities = common_capabilities, + }, + }, + }, } require("core.which-key").config()