blob: 306c7f2cb61b367932683d270983b76e3c0f42e4 (
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 skeleton = require 'common_lsp/skeleton'
local util = require 'common_lsp/util'
local lsp = vim.lsp
skeleton.gopls = {
default_config = {
cmd = {"gopls"};
filetypes = {"go"};
root_dir = util.root_pattern("go.mod", ".git");
log_level = lsp.protocol.MessageType.Warning;
settings = {};
};
-- on_new_config = function(new_config) end;
-- on_attach = function(client, bufnr) end;
docs = {
description = [[
https://github.com/golang/tools/tree/master/gopls
Google's lsp server for golang.
]];
default_config = {
root_dir = "vim's starting directory";
};
};
}
-- vim:et ts=2 sw=2
|