aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/gdscript.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/gdscript.lua')
-rw-r--r--lua/nvim_lsp/gdscript.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/nvim_lsp/gdscript.lua b/lua/nvim_lsp/gdscript.lua
new file mode 100644
index 00000000..82917a27
--- /dev/null
+++ b/lua/nvim_lsp/gdscript.lua
@@ -0,0 +1,26 @@
+local configs = require 'nvim_lsp/configs'
+local util = require 'nvim_lsp/util'
+local lsp = vim.lsp
+
+configs.gdscript = {
+ default_config = {
+ cmd = {"nc", "localhost", "6008"};
+ filetypes = {"gd", "gdscript3"};
+ root_dir = util.root_pattern("project.godot", ".git");
+ log_level = lsp.protocol.MessageType.Warning;
+ };
+ -- on_new_config = function(new_config) end;
+ -- on_attach = function(client, bufnr) end;
+ docs = {
+ description = [[
+https://github.com/godotengine/godot
+
+Language server for GDScript, used by Godot Engine.
+]];
+ default_config = {
+ root_dir = "vim's starting directory";
+ };
+ };
+};
+
+-- vim:et ts=2 sw=2