aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/man.lua
Commit message (Collapse)AuthorAge
* fix(man.lua): cache pages until width changes #40607Barrett Ruth2026-07-06
| | | | | | | Problem: :Man unloads hidden buffers, so reopening large pages reruns rendering even when the width is unchanged. Solution: keep regular man buffers loaded and refresh them only when the effective width changes.
* fix(man.lua): noisy "ENOENT" error on Windows #33409Emanuel Krollmann2025-04-12
| | | | | | | Problem: :Man shows noisy "ENOENT: no such file or directory" error on Windows. Solution: Do some checks before calling `vim.system`.
* refactor: use nvim.foo.bar format for autocommand groupsMaria José Solano2025-01-14
|
* refactor(man.lua): various changesLewis Russell2024-12-18
| | | | | | | | | | | | | | | | | | | - Replace all uses of vim.regex with simpler Lua patterns. - Replace all uses of vim.fn.substitute with string.gsub. - Rework error handling so expected errors are passed back via a return. - These get routed up an passed to `vim.notify()` - Any other errors will cause a stack trace. - Reworked the module initialization of `localfile_arg` - Updated all type annotations. - Refactored CLI completion by introduction a parse_cmdline() function. - Simplified `show_toc()` - Refactor highlighting - Inline some functions - Fix completion on MacOS 13 and earlier. - Prefer `manpath -q` over `man -w` - Make completion more efficient by avoiding vim.fn.sort and vim.fn.uniq - Reimplement using a single loop
* fix(man): set the nested flag for the BufReadCmd autocommand (#26285)Gregory Anders2023-11-28
| | | | The nested flag must be set so that other autocommands can fire while the BufReadCmd is still executing.
* fix(man): make :Man with a range work (#25922)zeertzjq2023-11-07
|
* feat(Man): port to Lua (#19912)Lewis Russell2022-09-02
Co-authored-by: zeertzjq <zeertzjq@outlook.com>