diff options
author | Lewis Russell <lewis6991@gmail.com> | 2025-01-16 20:53:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 20:53:17 +0000 |
commit | fb564ddff0b4ec9dad5afa7548777af1c3044273 (patch) | |
tree | bece6f53cd54b2b5c85228d689ac88e227b9e250 /runtime/lua/vim/_meta/options.lua | |
parent | 92d3bf101d07d52cfbd4c22e6e06251897adda34 (diff) | |
download | rneovim-fb564ddff0b4ec9dad5afa7548777af1c3044273.tar.gz rneovim-fb564ddff0b4ec9dad5afa7548777af1c3044273.tar.bz2 rneovim-fb564ddff0b4ec9dad5afa7548777af1c3044273.zip |
refactor(options): generic expand and did_set callbacks (#32011)
* refactor(options): generic expand and did_set callbacks
Problem:
Many options have similar callbacks to check the values are valid.
Solution:
Generalize these callbacks into a single function that reads the option
table.
* refactor: gen_options.lua
refactor: gen_options.lua - inline get_cond
* refactor(options): use a simpler format for the common default
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 14f252516a..107b1ffdfb 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -4947,7 +4947,7 @@ vim.wo.rl = vim.wo.rightleft --- This is useful for languages such as Hebrew, Arabic and Farsi. --- The 'rightleft' option must be set for 'rightleftcmd' to take effect. --- ---- @type 'search' +--- @type string vim.o.rightleftcmd = "search" vim.o.rlc = vim.o.rightleftcmd vim.wo.rightleftcmd = vim.o.rightleftcmd |