aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-12-07 01:34:29 +0600
committerFamiu Haque <famiuhaque@proton.me>2023-12-14 16:46:42 +0600
commit3c2c022e5e299ecac4663c3813e2db5e2b099ffa (patch)
tree8cfefb87b8a675e1c29b0caf3e1adca14bf196b5 /src/nvim/options.lua
parent320e9c1c21817fd76b84345018661f70437fa4b5 (diff)
downloadrneovim-3c2c022e5e299ecac4663c3813e2db5e2b099ffa.tar.gz
rneovim-3c2c022e5e299ecac4663c3813e2db5e2b099ffa.tar.bz2
rneovim-3c2c022e5e299ecac4663c3813e2db5e2b099ffa.zip
refactor(options): remove option type macros
Problem: We have `P_(BOOL|NUM|STRING)` macros to represent an option's type, which is redundant because `OptValType` can already do that. The current implementation of option type flags is also too limited to allow adding multitype options in the future. Solution: Remove `P_(BOOL|NUM|STRING)` and replace it with a new `type_flags` attribute in `vimoption_T`. Also do some groundwork for adding multitype options in the future. Side-effects: Attempting to set an invalid keycode option (e.g. `set t_foo=123`) no longer gives an error.
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua240
1 files changed, 120 insertions, 120 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 8f0be0eb1b..edd7423e69 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -5,7 +5,7 @@
--- @field short_desc? string|fun(): string
--- @field varname? string
--- @field pv_name? string
---- @field type 'bool'|'number'|'string'
+--- @field type 'boolean'|'number'|'string'
--- @field immutable? boolean
--- @field list? 'comma'|'onecomma'|'commacolon'|'onecommacolon'|'flags'|'flagscomma'
--- @field scope vim.option_scope[]
@@ -105,7 +105,7 @@ return {
full_name = 'allowrevins',
scope = { 'global' },
short_desc = N_('allow CTRL-_ in Insert and Command-line mode'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ari',
},
{
@@ -176,7 +176,7 @@ return {
redraw = { 'curswant' },
scope = { 'window' },
short_desc = N_('Arabic as a default second language'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'arshape',
@@ -199,7 +199,7 @@ return {
redraw = { 'all_windows', 'ui_option' },
scope = { 'global' },
short_desc = N_('do shaping for Arabic characters'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_arshape',
},
{
@@ -217,7 +217,7 @@ return {
full_name = 'autochdir',
scope = { 'global' },
short_desc = N_('change directory to the file in the current window'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_acd',
},
{
@@ -239,7 +239,7 @@ return {
full_name = 'autoindent',
scope = { 'buffer' },
short_desc = N_('take indent for new line from previous line'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ai',
},
{
@@ -259,7 +259,7 @@ return {
full_name = 'autoread',
scope = { 'global', 'buffer' },
short_desc = N_('autom. read file when changed outside of Vim'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ar',
},
{
@@ -284,7 +284,7 @@ return {
full_name = 'autowrite',
scope = { 'global' },
short_desc = N_('automatically write file if changed'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_aw',
},
{
@@ -299,7 +299,7 @@ return {
full_name = 'autowriteall',
scope = { 'global' },
short_desc = N_("as 'autowrite', but works with more commands"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_awa',
},
{
@@ -387,7 +387,7 @@ return {
full_name = 'backup',
scope = { 'global' },
short_desc = N_('keep backup file after overwriting a file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_bk',
},
{
@@ -671,7 +671,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('read/write/edit file in binary mode'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_bin',
},
{
@@ -699,7 +699,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('a Byte Order Mark to the file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_bomb',
},
{
@@ -733,7 +733,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('wrapped line repeats indent'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'briopt',
@@ -848,7 +848,7 @@ return {
scope = { 'buffer' },
short_desc = N_('whether the buffer shows up in the buffer list'),
tags = { 'E85' },
- type = 'bool',
+ type = 'boolean',
varname = 'p_bl',
},
{
@@ -950,7 +950,7 @@ return {
scope = { 'global' },
secure = true,
short_desc = N_(':cd without argument goes to the home directory'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_cdh',
},
{
@@ -1088,7 +1088,7 @@ return {
full_name = 'cindent',
scope = { 'buffer' },
short_desc = N_('do C program indenting'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_cin',
},
{
@@ -1341,7 +1341,7 @@ return {
full_name = 'compatible',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -1558,7 +1558,7 @@ return {
full_name = 'confirm',
scope = { 'global' },
short_desc = N_('ask what to do about unsaved/read-only files'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_confirm',
},
{
@@ -1578,7 +1578,7 @@ return {
full_name = 'copyindent',
scope = { 'buffer' },
short_desc = N_("make 'autoindent' use existing indent structure"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ci',
},
{
@@ -1843,7 +1843,7 @@ return {
pv_name = 'p_crbind',
scope = { 'window' },
short_desc = N_('move cursor in window as it moves in other windows'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'cuc',
@@ -1862,7 +1862,7 @@ return {
redraw = { 'current_window_only' },
scope = { 'window' },
short_desc = N_('highlight the screen column of the cursor'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'cul',
@@ -1877,7 +1877,7 @@ return {
redraw = { 'current_window_only' },
scope = { 'window' },
short_desc = N_('highlight the screen line of the cursor'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'culopt',
@@ -1978,7 +1978,7 @@ return {
full_name = 'delcombine',
scope = { 'global' },
short_desc = N_('delete combining characters on their own'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_deco',
},
{
@@ -2030,7 +2030,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('diff mode for the current window'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'dex',
@@ -2183,7 +2183,7 @@ return {
full_name = 'digraph',
scope = { 'global' },
short_desc = N_('enable the entering of digraphs in Insert mode'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_dg',
},
{
@@ -2299,7 +2299,7 @@ return {
full_name = 'edcompatible',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -2317,7 +2317,7 @@ return {
redraw = { 'all_windows', 'ui_option' },
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_emoji',
},
{
@@ -2354,7 +2354,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('write CTRL-Z for last line in file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_eof',
},
{
@@ -2380,7 +2380,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('write <EOL> for last line in file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_eol',
},
{
@@ -2406,7 +2406,7 @@ return {
full_name = 'equalalways',
scope = { 'global' },
short_desc = N_('windows are automatically made the same size'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ea',
},
{
@@ -2442,7 +2442,7 @@ return {
full_name = 'errorbells',
scope = { 'global' },
short_desc = N_('ring the bell for error messages'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_eb',
},
{
@@ -2517,7 +2517,7 @@ return {
full_name = 'expandtab',
scope = { 'buffer' },
short_desc = N_('use spaces when <Tab> is inserted'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_et',
},
{
@@ -2539,7 +2539,7 @@ return {
scope = { 'global' },
secure = true,
short_desc = N_('read .nvimrc and .exrc in the current directory'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_exrc',
},
{
@@ -2769,7 +2769,7 @@ return {
full_name = 'fileignorecase',
scope = { 'global' },
short_desc = N_('ignore case when using file names'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_fic',
},
{
@@ -2901,7 +2901,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('make sure last line in file has <EOL>'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_fixeol',
},
{
@@ -2960,7 +2960,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('set to display all folds open'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'fde',
@@ -3329,7 +3329,7 @@ return {
scope = { 'global' },
secure = true,
short_desc = N_('whether to invoke fsync() after file write'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_fs',
},
{
@@ -3353,7 +3353,7 @@ return {
full_name = 'gdefault',
scope = { 'global' },
short_desc = N_('the ":substitute" flag \'g\' is default on'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_gd',
},
{
@@ -3849,7 +3849,7 @@ return {
full_name = 'hidden',
scope = { 'global' },
short_desc = N_("don't unload buffer when it is |abandon|ed"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_hid',
},
{
@@ -3885,7 +3885,7 @@ return {
full_name = 'hkmap',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -3894,7 +3894,7 @@ return {
full_name = 'hkmapp',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -3926,7 +3926,7 @@ return {
redraw = { 'all_windows' },
scope = { 'global' },
short_desc = N_('highlight matches with last search pattern'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_hls',
},
{
@@ -3945,7 +3945,7 @@ return {
full_name = 'icon',
scope = { 'global' },
short_desc = N_('Vim set the text of the window icon'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_icon',
},
{
@@ -3981,7 +3981,7 @@ return {
full_name = 'ignorecase',
scope = { 'global' },
short_desc = N_('ignore case in search patterns'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ic',
},
{
@@ -3998,7 +3998,7 @@ return {
full_name = 'imcmdline',
scope = { 'global' },
short_desc = N_('use IM when starting to edit a command line'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'imd',
@@ -4016,7 +4016,7 @@ return {
full_name = 'imdisable',
scope = { 'global' },
short_desc = N_('do not use the IM in any mode'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'imi',
@@ -4195,7 +4195,7 @@ return {
full_name = 'incsearch',
scope = { 'global' },
short_desc = N_('highlight match while typing search pattern'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_is',
},
{
@@ -4283,7 +4283,7 @@ return {
full_name = 'infercase',
scope = { 'buffer' },
short_desc = N_('adjust case of match for keyword completion'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_inf',
},
{
@@ -4292,7 +4292,7 @@ return {
full_name = 'insertmode',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -4469,7 +4469,7 @@ return {
full_name = 'joinspaces',
scope = { 'global' },
short_desc = N_('two spaces after a period with a join command'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_js',
},
{
@@ -4664,7 +4664,7 @@ return {
full_name = 'langnoremap',
scope = { 'global' },
short_desc = N_("do not apply 'langmap' to mapped characters"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_lnr',
},
{
@@ -4679,7 +4679,7 @@ return {
full_name = 'langremap',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_lrm',
},
{
@@ -4718,7 +4718,7 @@ return {
full_name = 'lazyredraw',
scope = { 'global' },
short_desc = N_("don't redraw while executing macros"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_lz',
},
{
@@ -4739,7 +4739,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('wrap long lines at a blank'),
- type = 'bool',
+ type = 'boolean',
},
{
defaults = {
@@ -4802,7 +4802,7 @@ return {
full_name = 'lisp',
scope = { 'buffer' },
short_desc = N_('indenting for Lisp'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_lisp',
},
{
@@ -4868,7 +4868,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('<Tab> and <EOL>'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'lcs',
@@ -4996,7 +4996,7 @@ return {
full_name = 'loadplugins',
scope = { 'global' },
short_desc = N_('load plugin scripts when starting up'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_lpl',
},
{
@@ -5013,7 +5013,7 @@ return {
full_name = 'magic',
scope = { 'global' },
short_desc = N_('special characters in search patterns'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_magic',
},
{
@@ -5280,7 +5280,7 @@ return {
full_name = 'modeline',
scope = { 'buffer' },
short_desc = N_('recognize modelines at start or end of file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ml',
},
{
@@ -5297,7 +5297,7 @@ return {
scope = { 'global' },
secure = true,
short_desc = N_('allow some options to be set in modeline'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_mle',
},
{
@@ -5329,7 +5329,7 @@ return {
scope = { 'buffer' },
short_desc = N_('changes to the text are not possible'),
tags = { 'E21' },
- type = 'bool',
+ type = 'boolean',
varname = 'p_ma',
},
{
@@ -5364,7 +5364,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('buffer has been modified'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_mod',
},
{
@@ -5377,7 +5377,7 @@ return {
full_name = 'more',
scope = { 'global' },
short_desc = N_('listings when the whole screen is filled'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_more',
},
{
@@ -5443,7 +5443,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('keyboard focus follows the mouse'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_mousef',
},
{
@@ -5459,7 +5459,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('hide mouse pointer while typing'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_mh',
},
{
@@ -5536,7 +5536,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('deliver mouse move events to input queue'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_mousemev',
},
{
@@ -5733,7 +5733,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('print the line number in front of each line'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'nuw',
@@ -5797,7 +5797,7 @@ return {
full_name = 'opendevice',
scope = { 'global' },
short_desc = N_('allow reading/writing devices on MS-Windows'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'opfunc',
@@ -5864,7 +5864,7 @@ return {
pri_mkrc = true,
scope = { 'global' },
short_desc = N_('pasting text'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_paste',
},
{
@@ -6004,7 +6004,7 @@ return {
full_name = 'preserveindent',
scope = { 'buffer' },
short_desc = N_('preserve the indent structure when reindenting'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_pi',
},
{
@@ -6035,14 +6035,14 @@ return {
scope = { 'window' },
short_desc = N_('identifies the preview window'),
tags = { 'E590' },
- type = 'bool',
+ type = 'boolean',
},
{
defaults = { if_true = true },
full_name = 'prompt',
scope = { 'global' },
short_desc = N_('enable prompt in Ex mode'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -6176,7 +6176,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('disallow writing the buffer'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ro',
},
{
@@ -6292,14 +6292,14 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('show relative line number in front of each line'),
- type = 'bool',
+ type = 'boolean',
},
{
defaults = { if_true = true },
full_name = 'remap',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -6328,7 +6328,7 @@ return {
full_name = 'revins',
scope = { 'global' },
short_desc = N_('inserting characters will work backwards'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ri',
},
{
@@ -6349,7 +6349,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('window is right-to-left oriented'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'rlc',
@@ -6403,7 +6403,7 @@ return {
redraw = { 'statuslines' },
scope = { 'global' },
short_desc = N_('show cursor line and column in the status line'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ru',
},
{
@@ -6598,7 +6598,7 @@ return {
pv_name = 'p_scbind',
scope = { 'window' },
short_desc = N_('scroll in window as other windows scroll'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'sj',
@@ -6700,7 +6700,7 @@ return {
scope = { 'global' },
secure = true,
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_secure',
},
{
@@ -7184,7 +7184,7 @@ return {
full_name = 'shellslash',
scope = { 'global' },
short_desc = N_('use forward slash for shell file names'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ssl',
},
{
@@ -7205,7 +7205,7 @@ return {
full_name = 'shelltemp',
scope = { 'global' },
short_desc = N_('whether to use a temp file for shell commands'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_stmp',
},
{
@@ -7262,7 +7262,7 @@ return {
full_name = 'shiftround',
scope = { 'global' },
short_desc = N_('round indent to multiple of shiftwidth'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sr',
},
{
@@ -7394,7 +7394,7 @@ return {
full_name = 'showcmd',
scope = { 'global' },
short_desc = N_('show (partial) command in status line'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sc',
},
{
@@ -7437,7 +7437,7 @@ return {
full_name = 'showfulltag',
scope = { 'global' },
short_desc = N_('show full tag pattern when completing tag'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sft',
},
{
@@ -7463,7 +7463,7 @@ return {
full_name = 'showmatch',
scope = { 'global' },
short_desc = N_('briefly jump to matching bracket if insert one'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sm',
},
{
@@ -7477,7 +7477,7 @@ return {
full_name = 'showmode',
scope = { 'global' },
short_desc = N_('message on status line to show current mode'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_smd',
},
{
@@ -7592,7 +7592,7 @@ return {
full_name = 'smartcase',
scope = { 'global' },
short_desc = N_('no ignore case when pattern has uppercase'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_scs',
},
{
@@ -7622,7 +7622,7 @@ return {
full_name = 'smartindent',
scope = { 'buffer' },
short_desc = N_('smart autoindenting for C programs'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_si',
},
{
@@ -7643,7 +7643,7 @@ return {
full_name = 'smarttab',
scope = { 'global' },
short_desc = N_("use 'shiftwidth' when inserting <Tab>"),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sta',
},
{
@@ -7665,7 +7665,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_("scroll by screen lines when 'wrap' is set"),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'sts',
@@ -7704,7 +7704,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('spell checking'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'spc',
@@ -7935,7 +7935,7 @@ return {
full_name = 'splitbelow',
scope = { 'global' },
short_desc = N_('new window from split is below the current one'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sb',
},
{
@@ -7973,7 +7973,7 @@ return {
full_name = 'splitright',
scope = { 'global' },
short_desc = N_('new window is put right of the current one'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_spr',
},
{
@@ -7994,7 +7994,7 @@ return {
full_name = 'startofline',
scope = { 'global' },
short_desc = N_('commands move cursor to first non-blank in line'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_sol',
vim = false,
},
@@ -8356,7 +8356,7 @@ return {
redraw = { 'statuslines' },
scope = { 'buffer' },
short_desc = N_('whether to use a swapfile for a buffer'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_swf',
},
{
@@ -8610,7 +8610,7 @@ return {
full_name = 'tagbsearch',
scope = { 'global' },
short_desc = N_('use binary searching in tags files'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_tbs',
},
{
@@ -8677,7 +8677,7 @@ return {
full_name = 'tagrelative',
scope = { 'global' },
short_desc = N_('file names in tag file are relative'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_tr',
},
{
@@ -8727,7 +8727,7 @@ return {
full_name = 'tagstack',
scope = { 'global' },
short_desc = N_('push tags onto the tag stack'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_tgst',
},
{
@@ -8746,7 +8746,7 @@ return {
full_name = 'termbidi',
scope = { 'global' },
short_desc = N_('terminal takes care of bi-directionality'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_tbidi',
},
{
@@ -8773,7 +8773,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('Terminal true color support'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_tgc',
},
{
@@ -8820,7 +8820,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('synchronize redraw output with the host terminal'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_termsync',
},
{
@@ -8828,7 +8828,7 @@ return {
full_name = 'terse',
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -8910,7 +8910,7 @@ return {
full_name = 'tildeop',
scope = { 'global' },
short_desc = N_('tilde command "~" behaves like an operator'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_to',
},
{
@@ -8925,7 +8925,7 @@ return {
full_name = 'timeout',
scope = { 'global' },
short_desc = N_('time out on mappings and key codes'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_timeout',
},
{
@@ -8959,7 +8959,7 @@ return {
full_name = 'title',
scope = { 'global' },
short_desc = N_('Vim set the title of the window'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_title',
},
{
@@ -9048,7 +9048,7 @@ return {
redraw = { 'ui_option' },
scope = { 'global' },
short_desc = N_('out on mappings'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_ttimeout',
},
{
@@ -9073,7 +9073,7 @@ return {
no_mkrc = true,
scope = { 'global' },
short_desc = N_('No description'),
- type = 'bool',
+ type = 'boolean',
immutable = true,
},
{
@@ -9129,7 +9129,7 @@ return {
full_name = 'undofile',
scope = { 'buffer' },
short_desc = N_('save undo information in a file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_udf',
},
{
@@ -9441,7 +9441,7 @@ return {
full_name = 'visualbell',
scope = { 'global' },
short_desc = N_('use visual bell instead of beeping'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_vb',
},
{
@@ -9453,7 +9453,7 @@ return {
full_name = 'warn',
scope = { 'global' },
short_desc = N_('for shell command when buffer was changed'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_warn',
},
{
@@ -9578,7 +9578,7 @@ return {
full_name = 'wildignorecase',
scope = { 'global' },
short_desc = N_('ignore case when completing file names'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_wic',
},
{
@@ -9626,7 +9626,7 @@ return {
full_name = 'wildmenu',
scope = { 'global' },
short_desc = N_('use menu for command line completion'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_wmnu',
},
{
@@ -9829,7 +9829,7 @@ return {
redraw = { 'statuslines' },
scope = { 'window' },
short_desc = N_('keep window height when opening/closing windows'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'wfw',
@@ -9843,7 +9843,7 @@ return {
redraw = { 'statuslines' },
scope = { 'window' },
short_desc = N_('keep window width when opening/closing windows'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'wh',
@@ -9996,7 +9996,7 @@ return {
redraw = { 'current_window' },
scope = { 'window' },
short_desc = N_('lines wrap and continue on the next line'),
- type = 'bool',
+ type = 'boolean',
},
{
abbreviation = 'wm',
@@ -10027,7 +10027,7 @@ return {
scope = { 'global' },
short_desc = N_('searches wrap around the end of the file'),
tags = { 'E384', 'E385' },
- type = 'bool',
+ type = 'boolean',
varname = 'p_ws',
},
{
@@ -10042,7 +10042,7 @@ return {
full_name = 'write',
scope = { 'global' },
short_desc = N_('to a file is allowed'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_write',
},
{
@@ -10054,7 +10054,7 @@ return {
full_name = 'writeany',
scope = { 'global' },
short_desc = N_('write to file with no need for "!" override'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_wa',
},
{
@@ -10077,7 +10077,7 @@ return {
full_name = 'writebackup',
scope = { 'global' },
short_desc = N_('make a backup before overwriting a file'),
- type = 'bool',
+ type = 'boolean',
varname = 'p_wb',
},
{