diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-12-16 16:16:57 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-12-18 14:40:36 +0000 |
commit | 7121983c45d92349a6532f32dcde9f425e30781e (patch) | |
tree | 8e8c089870c589e61d998aa9e3fa74ca0ef23080 /src | |
parent | 888a803755c58db56b5b20fcf6b812de877056c9 (diff) | |
download | rneovim-7121983c45d92349a6532f32dcde9f425e30781e.tar.gz rneovim-7121983c45d92349a6532f32dcde9f425e30781e.tar.bz2 rneovim-7121983c45d92349a6532f32dcde9f425e30781e.zip |
refactor(man.lua): various changes
- 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
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions