aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/gopls.lua
blob: d853232aac3e0f368718d4a1f6a40850a58e7a41 (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
local configs = require 'nvim_lsp/configs'
local util = require 'nvim_lsp/util'

configs.gopls = {
  default_config = {
    cmd = {"gopls"};
    filetypes = {"go"};
    root_dir = util.root_pattern("go.mod", ".git");
  };
  -- 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 = [[root_pattern("go.mod", ".git")]];
    };
  };
}
-- vim:et ts=2 sw=2