Giter Club home page Giter Club logo

bingo's Introduction

bingo

Go Report Card

bingo is a Go language server that speaks Language Server Protocol.

This project was largely inspired by go-langserver.

Supported Features

Feature

bingo will support editor features as follow:

  • textDocument/hover
  • textDocument/definition
  • textDocument/xdefinition
  • textDocument/typeDefinition
  • textDocument/references
  • textDocument/implementation
  • textDocument/formatting
  • textDocument/rangeFormatting
  • textDocument/documentSymbol
  • textDocument/completion
  • textDocument/signatureHelp
  • textDocument/publishDiagnostics
  • textDocument/rename
  • textDocument/codeAction
  • textDocument/codeLens
  • workspace/symbol
  • workspace/xreferences

Install

Install

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

git clone https://github.com/saibing/bingo.git
cd bingo
GO111MODULE=on go install

If you live in China and may not be able to download golang.org/x/ dependency module, please set GOPROXY as follow:

 export GOPROXY=https://athens.azurefd.net/

Configuration

bingo's flag

--trace

print all requests and responses

--logfile <path>

log both stdout and stderr to a file

--format-style <style>

which format style is used to format documents. Supported: gofmt and goimports

--diagnostics-style <style>

which diagnostics style is used to diagnostics current document. Supported: none, instant, onsave.

--cache-style <style>

set global cache style: none, on-demand, always.

Language Client

{
    "go.useLanguageServer": true,
    "go.alternateTools": {
        "go-langserver": "bingo"
    },
    "go.languageServerFlags": [
        "-enhance-signature-help",
        "-trace",
        "-format-style=goimports",
    ],
    "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
    }
}

Please reference Language server

let g:LanguageClient_rootMarkers = {
        \ 'go': ['.git', 'go.mod'],
        \ }

let g:LanguageClient_serverCommands = {
    \ 'go': ['bingo'],
    \ }

F.A.Q

Differences between go-langserver, bingo, golsp

go-langserver is designed for online code reading such as github.com.

bingo is designed for offline editors such as vscode, vim, it focuses on code editing.

gopls is an official language server, and it is currently in early development.

bingo's People

Contributors

110y avatar alexsaveliev avatar beyang avatar contextualist avatar corpix avatar fannheyward avatar fjl avatar iamruinous avatar josharian avatar ka2n avatar keegancsmith avatar lindaxie-zz avatar lloiser avatar mbana avatar nezorflame avatar nicksnyder avatar nicot avatar otto-md avatar pbitty avatar pianohacker avatar ramya-rao-a avatar saibing avatar seebs avatar slimsag avatar sqs avatar svarlamov avatar uforic avatar vitreuz avatar wbbradley avatar yudai avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.