aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-12-16 16:16:57 +0000
committerLewis Russell <me@lewisr.dev>2024-12-18 14:40:36 +0000
commit7121983c45d92349a6532f32dcde9f425e30781e (patch)
tree8e8c089870c589e61d998aa9e3fa74ca0ef23080 /runtime/lua/vim/_meta/api.lua
parent888a803755c58db56b5b20fcf6b812de877056c9 (diff)
downloadrneovim-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 'runtime/lua/vim/_meta/api.lua')
0 files changed, 0 insertions, 0 deletions