diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-08-26 15:31:16 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-08-28 11:34:01 +0200 |
| commit | c10e36fc016cb265026a772571ce0a405df2ab71 (patch) | |
| tree | 2918f8f85fbd9595eb55af33033acde417d415d2 /src/gen/gen_vimdoc.lua | |
| parent | a33284c2c068a9204330bc941e274b1f5bd9f5c6 (diff) | |
| download | rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.gz rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.bz2 rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.zip | |
refactor(lua): consistent use of local aliases
Diffstat (limited to 'src/gen/gen_vimdoc.lua')
| -rwxr-xr-x | src/gen/gen_vimdoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen/gen_vimdoc.lua b/src/gen/gen_vimdoc.lua index 858eb4beab..f084584102 100755 --- a/src/gen/gen_vimdoc.lua +++ b/src/gen/gen_vimdoc.lua @@ -591,7 +591,7 @@ local function render_fields_or_params(xs, generics, classes, cfg) inline_type(p, classes) local nm, ty = p.name, p.type - local desc = p.classvar and string.format('See |%s|.', cfg.fn_helptag_fmt(p)) or p.desc + local desc = p.classvar and fmt('See |%s|.', cfg.fn_helptag_fmt(p)) or p.desc local fnm = p.kind == 'operator' and fmt('op(%s)', nm) or fmt_field_name(nm) local pnm = fmt(' • %-' .. indent .. 's', fnm) @@ -1071,7 +1071,7 @@ local function gen_target(cfg) for _, f in ipairs(cfg.section_order) do local section = sections[f] if section then - print(string.format(" Rendering section: '%s'", section.title)) + print(fmt(" Rendering section: '%s'", section.title)) local add_sep_and_header = not vim.tbl_contains(cfg.append_only or {}, f) docs[#docs + 1] = render_section(section, add_sep_and_header) end |