robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqfix(runtime): treat b:undo_ftplugin consistently in Lua ftplugins (#30473)5057753431

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