Hi everyone,
I am trying to set up the pbkit language server for protobuf files. Since it is not part of the nvim-lspconfig repo’s server configurations, I have to figure the way out myself. It doesn’t seem to be too difficult, as I can start from the bufls configuration. The following is what I have at the moment:
return {
default_config = {
cmd = { "pb", "lsp" },
filetypes = { "proto" },
single_file_support = true,
root_dir = function() end,
},
}
When I tried to open a protobuf file in neovim, I could tell that the pbkit language server started correctly from my status line. However, whenever I tried to do something related to the lsp (e.g., go to the definition of some defined messages, or trigger the auto-completion), I got a bizarre message from neovim, as shown in the screenshot. Neovim seems to show that the lsp server received the request from the client. However, instead of handling the request directly, it prompts the user to decide which request should be handled. I have never seen this behavior before.
I also tried to set up pbkit with coc.nvim in neovim and it worked as expected. Then I also managed to make it work with helix. I am wondering whether it is something I need to do in my neovim config to make the native lsp work with this specific language server?
Thanks for your help!