neovim/runtime/lua/vim
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
..
_meta feat(options)!: disallow setting hidden options #28400 2024-11-04 05:00:12 -08:00
deprecated refactor(lua): use tuple syntax everywhere #29111 2024-06-04 06:06:02 -07:00
filetype fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
func feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
health fix(health): check more "old" files #30421 2024-09-19 06:34:23 -07:00
lsp feat(lsp): multi-client support for signature_help 2024-11-04 11:55:39 +00:00
provider docs: misc 2024-10-23 14:13:42 +02:00
treesitter fix(treesitter): close InspectTree/EditQuery window on BufUnload (#31036) 2024-11-03 11:28:31 +08:00
ui/clipboard fix(osc52): use nvim_chan_send() to stderr for copying (#26690) 2023-12-21 11:47:04 +08:00
_comment.lua fix(treesitter): suppress get_parser warnings via opts.error 2024-09-28 00:31:45 +02:00
_defaults.lua fix(defaults): omit extraneous info from unimpaired mapping errors (#30983) 2024-10-29 10:06:14 -05:00
_editor.lua fix(lua): show stacktrace for error in vim.on_key() callback (#31021) 2024-11-02 10:11:06 +08:00
_init_packages.lua refactor(types): more fixes 2024-03-06 10:45:22 +00:00
_inspector.lua docs: render @since versions, 0 means experimental #30649 2024-10-04 02:13:31 -07:00
_meta.lua refactor: rename vim.highlight => vim.hl 2024-10-21 00:54:43 +02:00
_options.lua docs(lua): "vim.bo" is always equivalent to :setlocal (#30733) 2024-10-09 11:31:14 +00:00
_system.lua perf(validate): use lighter version 2024-10-17 16:53:52 +01:00
_watch.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
diagnostic.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
F.lua fix(diagnostic): typing 2024-01-16 09:33:10 +00:00
filetype.lua vim-patch:9.1.0826: filetype: sway files are not recognized 2024-11-02 23:33:38 +01:00
fs.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
func.lua fix(treesitter): return correct match table in iter_captures() 2024-03-27 10:39:46 +00:00
glob.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
health.lua feat(health): highlight headings #30525 2024-09-26 07:45:03 -07:00
hl.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
inspect.lua fix(inspect): escape identifiers that are lua keywords (#19898) 2022-08-23 13:02:55 +02:00
iter.lua docs: misc #28970 2024-09-01 13:01:24 -07:00
keymap.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
loader.lua refactor(loader): format annotations 2024-10-31 15:20:29 +00:00
lsp.lua feat(lsp)!: remove client-server handlers from vim.lsp.handlers 2024-11-01 09:17:39 +00:00
provider.lua refactor: create function for deferred loading 2024-02-03 16:53:41 +01:00
re.lua docs: auto-generate docs for vim.lpeg and vim.re 2024-01-14 11:08:33 +00:00
secure.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
shared.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
snippet.lua fix(snippet): modify base indentation when there's actually whitespace (#29670) 2024-07-16 19:30:22 +02:00
termcap.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
text.lua fix(vim.text): handle very long strings (#30075) 2024-08-17 22:28:03 -05:00
treesitter.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
ui.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
uri.lua fix(lua): remove uri fragment from file paths (#27647) 2024-02-28 10:50:53 +01:00
version.lua docs: render @since versions, 0 means experimental #30649 2024-10-04 02:13:31 -07:00
vimhelp.lua fix(treesitter): suppress get_parser warnings via opts.error 2024-09-28 00:31:45 +02:00