diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-06-06 11:26:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 11:26:29 -0500 |
commit | fcfe535e9877cfdc824dc78f2d19e590400d34cd (patch) | |
tree | 2867033645aa2830356580f7248f02156216926b /src/nvim/options.lua | |
parent | 4382d2ed564b80944345785d780cf1b19fb23ba8 (diff) | |
download | rneovim-fcfe535e9877cfdc824dc78f2d19e590400d34cd.tar.gz rneovim-fcfe535e9877cfdc824dc78f2d19e590400d34cd.tar.bz2 rneovim-fcfe535e9877cfdc824dc78f2d19e590400d34cd.zip |
refactor(defaults): do not use C specific default values for options (#22500)
The options 'path', 'include', and 'define' all use C-specific default
values. This may have made sense a long time ago when Vim was mostly
used just for writing C, but this is no longer the case, and we have
ample support for filetype specific configuration. Make the default
values of these options empty and move the C-specific values into a
filetype plugin where they belong.
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 2d6b049a48..d3566ba318 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -570,7 +570,7 @@ return { alloced=true, redraw={'curswant'}, varname='p_def', - defaults={if_true="^\\s*#\\s*define"} + defaults={if_true=""} }, { full_name='delcombine', abbreviation='deco', @@ -1227,7 +1227,7 @@ return { type='string', scope={'global', 'buffer'}, alloced=true, varname='p_inc', - defaults={if_true="^\\s*#\\s*include"} + defaults={if_true=""} }, { full_name='includeexpr', abbreviation='inex', @@ -1815,7 +1815,7 @@ return { deny_duplicates=true, expand=true, varname='p_path', - defaults={if_true=".,/usr/include,,"} + defaults={if_true=".,,"} }, { full_name='preserveindent', abbreviation='pi', |