neovim/runtime/lua/vim/_meta
Famiu Haque a27419f3fc
feat(options)!: disallow setting hidden options #28400
Problem:
There are three different ways of marking an option as hidden, `enable_if
= false`, `hidden = true` and `immutable = true`. These also have different
behaviors. Options hidden with `enable_if = false` can't have their value
fetched using Vim script or the API, but options hidden with `hidden = true` or
`immutable = true` can. On the other hand, options with `hidden = true` do not
error when trying to set their value, but options with `immutable = true` do.

Solution:
Remove `enable_if = false`, remove the `hidden` property for options, and use
`immutable = true` to mark an option as hidden instead. Also make hidden option
variable pointers always point to the default value, which allows fetching the
value of every hidden option using Vim script and the API. This does also mean
that trying to set a hidden option will now give an error instead of just being
ignored.
2024-11-04 05:00:12 -08:00
..
api_keysets_extra.lua fix(ui): correctly pass metadata to get_node_text #30222 2024-09-01 10:15:02 -07:00
api_keysets.lua feat(float): allow enabling mouse for non-focusable window (#30844) 2024-10-20 22:18:26 +08:00
api.lua feat(float): allow enabling mouse for non-focusable window (#30844) 2024-10-20 22:18:26 +08:00
base64.lua fix: lua annotations 2024-04-26 15:13:06 +01:00
builtin_types.lua feat(meta): add type for quickfix entries 2024-10-17 10:54:19 +01:00
builtin.lua feat(stdlib): overload vim.str_byteindex, vim.str_utfindex #30735 2024-10-23 06:33:57 -07:00
diff.lua test: refactor exec_lua in xdiff_spec 2024-09-30 11:51:33 +01:00
json.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
lpeg.lua docs(lpeg): merge upstream changes 2024-07-15 21:16:29 +01:00
misc.lua fix: type warnings in shared.lua 2024-02-15 11:32:50 +00:00
mpack.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
options.lua feat(options)!: disallow setting hidden options #28400 2024-11-04 05:00:12 -08:00
re.lua docs: news 2024-05-15 23:19:26 +02:00
regex.lua docs: dev-arch, focusable windows #30510 2024-10-07 08:27:38 -07:00
spell.lua refactor(lua): use tuple syntax everywhere #29111 2024-06-04 06:06:02 -07:00
vimfn.lua vim-patch:b5e7da1: runtime(doc): mention 'iskeyword' at :h charclass() (#31026) 2024-11-01 18:22:08 +08:00
vvars.lua vim-patch:9.1.0831: 'findexpr' can't be used as lambad or Funcref (#31058) 2024-11-03 10:06:41 +08:00