diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-04-12 16:14:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 16:14:01 +0200 |
commit | d08692a8246039b938b5645a6c01b4ff7f51671e (patch) | |
tree | ef87ec954dd91113a7d617cf3834a7805ae8cb8c /src/nvim/options.lua | |
parent | 3b7a4f233bd53eb901904992227be3fffe5e621a (diff) | |
download | rneovim-d08692a8246039b938b5645a6c01b4ff7f51671e.tar.gz rneovim-d08692a8246039b938b5645a6c01b4ff7f51671e.tar.bz2 rneovim-d08692a8246039b938b5645a6c01b4ff7f51671e.zip |
options: comma-separated options don't allow duplicates (#9891)
Closes https://github.com/neovim/neovim/issues/9890
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 30c234686f..a855610cc9 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -181,6 +181,7 @@ return { { full_name='backupskip', abbreviation='bsk', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_bsk', defaults={if_true={vi=""}} @@ -189,6 +190,7 @@ return { full_name='belloff', abbreviation='bo', deny_duplicates=true, type='string', list='comma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_bo', defaults={if_true={vi="all"}} @@ -756,6 +758,7 @@ return { { full_name='fileencodings', abbreviation='fencs', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_fencs', defaults={if_true={vi="ucs-bom,utf-8,default,latin1"}} @@ -1016,6 +1019,7 @@ return { { full_name='guifontset', abbreviation='gfs', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_guifontset', redraw={'ui_option'}, @@ -1070,6 +1074,7 @@ return { { full_name='helplang', abbreviation='hlg', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_hlg', defaults={if_true={vi=""}} @@ -2240,6 +2245,7 @@ return { { full_name='spellfile', abbreviation='spf', type='string', list='onecomma', scope={'buffer'}, + deny_duplicates=true, secure=true, vi_def=true, alloced=true, @@ -2250,6 +2256,7 @@ return { { full_name='spelllang', abbreviation='spl', type='string', list='onecomma', scope={'buffer'}, + deny_duplicates=true, vi_def=true, alloced=true, expand=true, @@ -2260,6 +2267,7 @@ return { { full_name='spellsuggest', abbreviation='sps', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, secure=true, vi_def=true, expand=true, @@ -2702,6 +2710,7 @@ return { { full_name='wildoptions', abbreviation='wop', type='string', list='onecomma', scope={'global'}, + deny_duplicates=true, vi_def=true, varname='p_wop', defaults={if_true={vi=""}} |