go-language-server / protocol

Package protocol implements Language Server Protocol specification in Go
https://pkg.go.dev/go.lsp.dev/protocol
BSD 3-Clause "New" or "Revised" License
98 stars 15 forks source link

Client Usage Examples #33

Open InTheCloudDan opened 2 years ago

InTheCloudDan commented 2 years ago

Does anyone have a small getting started example of using this library as a LSP client? I see the NewClient/NewServer but trying to understand what a most basic implementation would look like.

japhib commented 2 years ago

A usage example would be very useful. I want to use this library but there's just no information on how to actually get started.

japhib commented 2 years ago

FWIW the "used by" section in the sidebar of the main Github page for the repo is helpful. In particular, this repo uses the repo to implement an LSP for protobuf: https://github.com/micnncim/protocol-buffers-language-server