diff options
author | Jongwook Choi <wookayin@gmail.com> | 2023-12-29 05:52:31 -0500 |
---|---|---|
committer | Jongwook Choi <wookayin@gmail.com> | 2024-01-02 11:32:35 -0500 |
commit | f74f52a1a5ff668187bf12c397319972764a9704 (patch) | |
tree | 17ecae1343b467c4c2f84ce7e97abbd33206dfab /runtime/lua/vim/shared.lua | |
parent | 4e9298ecdf945b4d16c2c6e6e4ed82b97880917c (diff) | |
download | rneovim-f74f52a1a5ff668187bf12c397319972764a9704.tar.gz rneovim-f74f52a1a5ff668187bf12c397319972764a9704.tar.bz2 rneovim-f74f52a1a5ff668187bf12c397319972764a9704.zip |
refactor(gen_vimdoc): refactor section and defgroup doc generation
Problem: main() has too much logic implemented there, too difficult to
read.
Solution: Do more OOP, introduce `Section` dataclass that stores
information about a "section", with documentation and concrete examples
about what each field and variable would mean. Extract all the lines for
rendering a section into `section.render()` pulled out of `main()`.
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions