nvim-neotest / nvim-nio

A library for asynchronous IO in Neovim
MIT License
305 stars 9 forks source link

How can I issue a request to a LSP endpoint that contains underscore? #23

Closed kostya9 closed 1 month ago

kostya9 commented 1 month ago

The C# LSP server (Omnisharp) contains an endpoint for tests discovery (o#/v2/discover_tests), and it contains an underscore. As far as I can see, all underscores are replaced to slashes, so I can't do something like:

    local err, result = client.request['o#_v2_discover_tests'](lsp_request)

Is there a way to instruct the client to not replace the last underscore?

kostya9 commented 1 month ago

Nevermind, the endpoint was discovertests without an underscore, I was just confused for a little while 😄