plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

Documentation for the async module

Open lewis6991 opened this issue 4 years ago • 4 comments

On the back of https://github.com/lewis6991/gitsigns.nvim/pull/287, I think it would be quite valuable at this point for some proper documentation to be written for the async module.

Personally I would prefer that this documentation was provided in vimdoc format (despite how much we all dislike the format itself) because it is very easy to look up while developing plugins. Obviously this doesn't restrict to providing markdown style docs too.

lewis6991 avatar Aug 02 '21 12:08 lewis6991

Yeah, we can add some documentation for it definitely. I would prefer to use it doing the docgen style we've used for telescope and some other projects, but I haven't had time yet (and it's also hard to both iterate on API and have no version in plugins :laughing: ). But we can probably add something for it soon.

tjdevries avatar Aug 02 '21 12:08 tjdevries

I would prefer to use it doing the docgen style we've used for telescope and some other projects

Is that at all documented and/or easy to use? For gitsigns I've been maintaining docs manually.

lewis6991 avatar Aug 02 '21 13:08 lewis6991

https://github.com/tjdevries/tree-sitter-lua/blob/master/HOWTO.md

And then in telescope: https://github.com/nvim-telescope/telescope.nvim/blob/master/scripts/gendocs.lua

(this is being actively worked on, we have some weird grammar bugs occasionally which i'm working on tracking down)

tjdevries avatar Aug 02 '21 19:08 tjdevries

I would like to try and help with the documentation of plenary using docgen. Is there maybe some module you would recommed as a starting point? Or maybe any suggestion?

TheLeoP avatar Aug 04 '22 00:08 TheLeoP