mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
a27419f3fc
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. |
||
---|---|---|
.. | ||
bump_deps.lua | ||
cdoc_grammar.lua | ||
cdoc_parser.lua | ||
check_urls.vim | ||
cliff.toml | ||
download-unicode-files.sh | ||
gen_eval_files.lua | ||
gen_filetype.lua | ||
gen_help_html.lua | ||
gen_lsp.lua | ||
gen_vimdoc.lua | ||
genappimage.sh | ||
lintcommit.lua | ||
lintdoc.lua | ||
luacats_grammar.lua | ||
luacats_parser.lua | ||
release.sh | ||
shadacat.py | ||
update_terminfo.sh | ||
util.lua | ||
vim-patch.sh | ||
vimpatch.lua | ||
windows.ti |