c.lua (442B)
1 -- These are the default option values in Vim, but not in Nvim, so must be set explicitly. 2 vim.bo.commentstring = '// %s' 3 vim.bo.define = '^\\s*#\\s*define' 4 vim.bo.include = '^\\s*#\\s*include' 5 6 if vim.fn.isdirectory('/usr/include') == 1 then 7 vim.cmd([[ 8 setlocal path^=/usr/include 9 setlocal path-=. 10 setlocal path^=. 11 ]]) 12 end 13 14 vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n setl commentstring< define< include< path<'