Skip to content

Commit

Permalink
Merge pull request #22 from 3DRX/fix/small_details
Browse files Browse the repository at this point in the history
Fix small details in example and go mod tidy.
  • Loading branch information
lasorda authored Nov 7, 2024
2 parents 8f7e137 + 67705a8 commit 2546944
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Using [lsp-config.nvim](https://github.com/neovim/nvim-lspconfig)
local configs = require('lspconfig.configs')
local util = require('lspconfig.util')

configs.protobuf-language-server = {
configs.protobuf_language_server = {
default_config = {
cmd = { 'path/to/protobuf-language-server' },
filetypes = { 'proto', 'cpp' },
root_fir = util.root_pattern('.git'),
root_dir = util.root_pattern('.git'),
single_file_support = true,
settings = {
["additional-proto-dirs"] = [
Expand All @@ -56,7 +56,9 @@ configs.protobuf-language-server = {

-- then we can continue as we do with official servers
local lspconfig = require('lspconfig')
lspconfig.protobuf-language-server.setup {}
lspconfig.protobuf_language_server.setup {
-- your custom stuff
}
```

if you use vscode, see [vscode-extension/README.md](./vscode-extension/README.md)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.16
require (
github.com/emicklei/proto v1.11.2-0.20230405093244-ad7e79baafcc
github.com/google/go-cmp v0.5.6 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/json-iterator/go v1.1.12
github.com/stretchr/testify v1.7.0
go.lsp.dev/jsonrpc2 v0.10.0
go.lsp.dev/uri v0.3.0
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ golang.org/x/sys v0.0.0-20211110154304-99a53858aa08/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 h1:OH54vjqzRWmbJ62fjuhxy7AxFFgoHN0/DPc/UrL8cAs=
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
Expand Down

0 comments on commit 2546944

Please sign in to comment.