neovim/scripts
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
..
bump_deps.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
cdoc_grammar.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
cdoc_parser.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
check_urls.vim vim-patch:1c5728e0c4a9 (#28703) 2024-05-11 18:14:03 +08:00
cliff.toml build(release.sh): use git cliff, drop old script 2024-05-16 00:19:17 +02:00
download-unicode-files.sh build(lintsh): double quote to prevent word splitting (#21571) 2022-12-28 22:50:24 +01:00
gen_eval_files.lua feat(options)!: disallow setting hidden options #28400 2024-11-04 05:00:12 -08:00
gen_filetype.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
gen_help_html.lua docs: misc 2024-10-23 14:13:42 +02:00
gen_lsp.lua feat(lsp)!: remove client-server handlers from vim.lsp.handlers 2024-11-01 09:17:39 +00:00
gen_vimdoc.lua fix(lsp.protocal): improve typing of constants 2024-10-24 10:53:03 +01:00
genappimage.sh build: various fixes 2024-02-01 12:06:55 +01:00
lintcommit.lua ci(lintcommit): allow capitalized letter after colon in description (#29480) 2024-06-26 05:08:15 +08:00
lintdoc.lua build(docs): separate lint job to validate vimdoc #27227 2024-01-28 14:22:39 -08:00
luacats_grammar.lua docs: improve luacats support #30580 2024-10-03 03:45:51 -07:00
luacats_parser.lua fix(gen_vimdoc): correctly generate function fields 2024-06-22 20:00:13 +01:00
release.sh build(release.sh): set VIMRUNTIME when regenerating docs (#28765) 2024-05-16 07:21:19 +08:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
update_terminfo.sh build(terminfo): include user capabilities in comments (#28066) 2024-03-28 10:23:07 +08:00
util.lua fix(docs): markdown instead of vimdoc in meta docstrings #30680 2024-10-06 03:24:21 -07:00
vim-patch.sh vim-patch: make gen_opt_test.vim work with Nvim (#30850) 2024-10-18 17:38:29 +08:00
vimpatch.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
windows.ti feat(tui): support undercurl in WezTerm (#28037) 2024-03-26 14:25:01 +08:00