aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate.py
AgeCommit message (Collapse)Author
2024-05-21docs: better type definitions for top-level functions (#410)Jon Heinritz
* docs: extract conform.format(opts) into it's own class * docs: extract conform.format_lines(opts) into it's own class * refactor: use new nvim_doc_tools capability to remove duplicated class definition --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-03-01cleanup: remove backwards compatability shimSteven Arcangeli
2023-12-26docs: autogenerate formatter options docs (#234)Steven Arcangeli
2023-12-06refactor!: formatter config functions take self as first argument (#233)Steven Arcangeli
This is a breaking API change, but there is a shim in place that will keep existing functions working, just with a warning notification. Most people should not encounter this at all. For anyone overriding a formatter config value with a function that takes `(ctx)` as the parameter, it will need to be updated to take `(self, ctx)`.
2023-10-08doc: add additional information about some advanced topicsSteven Arcangeli
2023-09-29doc: speed up documentation generationSteven Arcangeli
2023-09-21refactor: rename ruff -> ruff_fixSteven Arcangeli
2023-09-14doc: add some recipes to the documentationSteven Arcangeli
2023-08-31feat: format() takes an optional callback (#21)Steven Arcangeli
* refactor: replicate lsp.buf.format call * feat: format() takes an optional callback * fix: improper logging * fix: callback returns error if buffer is no longer valid * fix: provide more detailed error message to callback * fix: properly detect task interruption * cleanup: remove unnecessary error code translation * fix: lsp formatting for Neovim 0.9 * doc: add example of async formatting on save * fix: async LSP formatter discards changes if buffer was modified * fix: error code comparison * fix: use the same LSP client filtering logic everywhere * fix: add buffer validity guard checks * fix: add buffer validity guard to LSP formatter * refactor: change the default log level to WARN
2023-08-28refactor!: remove ability for formatter list to disable autoformatSteven Arcangeli
I realized that there are so, so many possible features people would want when configuring the autoformatter, but it's better to just code it up yourself rather than try to create a config language that can describe all possible logic. Also adding new docs to provide examples of more advanced autoformat logic.
2023-08-28doc: move doc scripts around and eliminate submoduleSteven Arcangeli