saibing / tools

[mirror] Go Tools

Home Page:https://godoc.org/golang.org/x/tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gopls

I have ported some features such as references, rename, workspace symbol, implementation of bingo to gopls

Install

gopls is a go module project, so you need install Go 1.12 or above, to install the gopls, please run

git clone -b bingo https://github.com/saibing/tools.git
cd tools/gopls
go install

Language Client

{
    "go.useLanguageServer": true,
    "go.alternateTools": {
        "go-langserver": "gopls"
    },
    "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
    },
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        },
    },
    "gopls": {
        "usePlaceholders": true,
        "enhancedHover": true
    }
}
{
  "languageserver": {
    "golang": {
      "command": "gopls",
      "args": [],
      "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
      "filetypes": ["go"]
    }
  }
}

Google offical gopls wiki

https://github.com/golang/go/wiki/gopls

About

[mirror] Go Tools

https://godoc.org/golang.org/x/tools

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 96.5%Language:JavaScript 1.2%Language:TypeScript 0.8%Language:HTML 0.7%Language:CSS 0.6%Language:Shell 0.0%Language:Assembly 0.0%Language:C 0.0%Language:Dockerfile 0.0%