lsp_server icon indicating copy to clipboard operation
lsp_server copied to clipboard

How to get documentation for local predicates?

Open meditans opened this issue 1 year ago • 1 comments

Using the lsp-mode, I can get documentation for loaded system predicates, but I'm not sure how I should provide documentation for my own predicates so that they are discovered by the lsp server. I tried using pldoc syntax without avail. Do you have any ideas?

meditans avatar Oct 16 '23 11:10 meditans

Hm, the LSP server tries to use xref to load the file and uses pldoc_process to parse any comment, so if it's valid pldoc, it should show up...I seem to recall that pldoc parsing predicate being very finicky over what it considered good/valid pldoc though.

I can try to take a look, but my wife & I just had our first child, so my time is pretty fragmented at the moment 😅

jamesnvc avatar Oct 19 '23 23:10 jamesnvc