summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_meta/api.gen.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-20fix(api): expose fg_indexed/bg_indexed in nvim_get_hl (#39240)Justin M. Keyes1
Problem: fg_indexed/bg_indexed were dropped from nvim_get_hl output due to a wrong short_keys guard. HL_FG_INDEXED also wasn't cleared in hl_blend_attrs, and HLATTRS_DICT_SIZE was too small. Solution: Remove the short_keys guard, clear HL_FG_INDEXED in hl_blend_attrs, bump HLATTRS_DICT_SIZE to 24, and clarify docs that these flags mean rgb is an approximation of the cterm palette index. (cherry picked from commit 01861c2f955119cc88158273e100b3490c3df6e1) Co-authored-by: glepnir <glephunter@gmail.com>
2026-04-16backport test: lint naming conventions (#39124)Justin M. Keyes1
test: lint naming conventions Problem: Naming conventions are not automatically checked. Solution: Add a check to the doc generator. Eventually we should extract this somehow, but that will require refactoring the doc generator... Note: this also checks non-public functions, basically anything that passes through `gen_eval_files.lua` and `gen_vimdoc.lua`. And that's a good thing.
2026-04-15refactor(api): rename "window" to "win" (positional parameters) #39083Justin M. Keyes1
continues d0af4cd9094f. This commit renames positional parameters. This is only "cosmetic", but is intended to make it extra clear which name is preferred, since people often copy existing code despite the guidelines in `:help dev-naming`. (cherry picked from commit 71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7)
2026-04-15refactor(api): rename buffer to buf (positional parameters) #39013Justin M. Keyes1
In 3a4a66017b74, 4d3a67cd6201, df8d98173cbc we renamed "buffer" to "buf" in dict parameters and return-values. This commit renames positional parameters. This is only "cosmetic", but is intended to make it extra clear which name is preferred, since people often copy existing code despite the guidelines in `:help dev-naming`. (cherry picked from commit d0af4cd9094f3439382622906da5b1c5cd82c294)
2026-04-14docs: lsp, options, apiJustin M. Keyes1
- revert bogus change to `_meta/builtin_types.lua` from 3a4a66017b74 Co-authored-by: David Mejorado <david.mejorado@gmail.com>
2026-04-14fix(lua): not obvious which _meta/ files are generated #39035Justin M. Keyes1
Problem: - Not obvious which _meta/ are generated and which should be edited manually. - The require guard (`error('Cannot require a meta file')`) is not consistently present in all meta files. Solution: - Update headers. - Add require() guard to all meta files. - Rename generated meta files with `.gen.lua`. (cherry picked from commit 65b40e69acbcb28c0e7ef9228f731c444a788e93)