aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/gdscript.lua
blob: 82917a278c929d33b3e88b83cdf2e7314ea6480b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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