nimlsp icon indicating copy to clipboard operation
nimlsp copied to clipboard

Help to identify capabilities

Open PMunch opened this issue 7 years ago • 2 comments

So nimsuggest offers different ways to query a file for information. According to the --help you can pass these commands: sug|con|def|use|dus|chk|mod|highlight|outline|known. Currently only sug is in use and maps to textDocument/completion. According to the integration guide only sug, con, def, and use are explained. If anyone could help to identify how to best map what we can get from nimsuggest (or other Nim tools) to the LSP specification that would be of great help.

PMunch avatar Nov 04 '18 21:11 PMunch

the Nim VSCode ext sources might help you, since the LSP was originally designed for VSCode, so the APIs share many similarities.

RSDuck avatar Nov 05 '18 00:11 RSDuck

Oh wow, yeah those should be really helpful. Not sure why I didn't think of that earlier. LSP itself stems from VSCode, so it should be a fairly simple task to map that functionality over to LSP.

PMunch avatar Nov 05 '18 08:11 PMunch