aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 6d61a6d64e..0d5c24a793 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -2,6 +2,7 @@
--- @field full_name string
--- @field desc? string
--- @field abbreviation? string
+--- @field alias? string|string[]
--- @field short_desc? string|fun(): string
--- @field varname? string
--- @field pv_name? string
@@ -84,6 +85,7 @@ end
return {
cstr = cstr,
--- @type vim.option_meta[]
+ --- The order of the options MUST be alphabetic for ":set all".
options = {
{
abbreviation = 'al',
@@ -6809,6 +6811,7 @@ return {
},
{
abbreviation = 'sd',
+ alias = { 'vi', 'viminfo' },
cb = 'did_set_shada',
defaults = {
if_true = "!,'100,<50,s10,h",
@@ -6940,6 +6943,7 @@ return {
},
{
abbreviation = 'sdf',
+ alias = { 'vif', 'viminfofile' },
defaults = { if_true = '' },
deny_duplicates = true,
desc = [=[
@@ -9375,22 +9379,6 @@ return {
varname = 'p_vop',
},
{
- abbreviation = 'vi',
- full_name = 'viminfo',
- nodefault = true,
- scope = { 'global' },
- short_desc = N_('Alias for shada'),
- type = 'string',
- },
- {
- abbreviation = 'vif',
- full_name = 'viminfofile',
- nodefault = true,
- scope = { 'global' },
- short_desc = N_('Alias for shadafile instead'),
- type = 'string',
- },
- {
abbreviation = 've',
cb = 'did_set_virtualedit',
defaults = { if_true = '' },