Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

saibing/tools

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.7%
  • JavaScript 1.2%
  • TypeScript 0.8%
  • HTML 0.7%
  • CSS 0.6%
  • Shell 0.0%