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>
This commit is contained in:
Gregory Anders
2023-06-06 11:26:29 -05:00
committed by GitHub
parent 4382d2ed56
commit fcfe535e98
6 changed files with 30 additions and 15 deletions

View File

@@ -706,7 +706,7 @@ describe('api/buf', function()
nvim('set_option_value', 'define', 'test', {buf = 0})
eq('test', nvim('get_option_value', 'define', {buf = 0}))
-- Doesn't change the global value
eq([[^\s*#\s*define]], nvim('get_option_value', 'define', {scope='global'}))
eq("", nvim('get_option_value', 'define', {scope='global'}))
end)
it('returns values for unset local options', function()