From fcfe535e9877cfdc824dc78f2d19e590400d34cd Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Tue, 6 Jun 2023 11:26:29 -0500 Subject: 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 --- src/nvim/options.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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', -- cgit