aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/ruby.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-07-13 13:43:49 -0400
committerGitHub <noreply@github.com>2026-07-13 13:43:49 -0400
commitdc8934482e72cdc885da69f7318eabc21a4e8757 (patch)
tree4948adf7d60e0ea7687968f93557be8f5e85cb78 /runtime/lua/vim/provider/ruby.lua
parent01d1ee330f6b904504d95b457b65b18b808c0991 (diff)
downloadrneovim-dc8934482e72cdc885da69f7318eabc21a4e8757.tar.gz
rneovim-dc8934482e72cdc885da69f7318eabc21a4e8757.tar.bz2
rneovim-dc8934482e72cdc885da69f7318eabc21a4e8757.zip
feat(api): optional params after `opts` #40720
Problem: After 25439dad7e2b, `opts` is optional, but not params that follow it. Solution: - Update `gen_api_dispatch.lua`, docs, tests. - Enhance the `nvim_get_api_info()` api-metadata to include a boolean flag indicating whether a parameter is optional: ``` [type, name, optional] ``` Note: Currently, optional params are assumed to be Dict/Array. Since we don't yet have any use-cases of optional params following `opts`, the build just checks this assumption and we can deal with it later if we ever care to: nvim_get_hl: optional param "foo" has type "Integer" but (currently) we assume Dict/Array
Diffstat (limited to 'runtime/lua/vim/provider/ruby.lua')
0 files changed, 0 insertions, 0 deletions