summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lsp/gopls.lua
blob: dd320558d109c780a964580bc11ab49e125d6738 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- [nfnl] Compiled from lsp/gopls.fnl by https://github.com/Olical/nfnl, do not edit.
local function _1_(buf, cb)
  local function _2_()
    local modr = vim.fs.root(buf, "go.mod")
    local _3_
    if modr then
      _3_ = vim.fs.root(modr, "go.work")
    else
      _3_ = nil
    end
    return (_3_ or modr)
  end
  return cb(_2_())
end
return {cmd = {"gopls"}, filetypes = {"go", "gomod", "gowork", "gosum"}, root_dir = _1_, settings = {autoformat = true, gopls = {analyses = {unusedparams = true, unusedwrite = true, nilness = true}, gofumpt = true, semanticTokens = true, staticcheck = true}}}