Files
nvim/after/ftplugin/cpp.lua
Kenneth Benzie (Benie) 6a60508ff2 Fix c/cpp mapping to wrap lines in #if 0/#endif
Use `x` mapping so that the mapping does not also get enabled in select
mode.
2026-03-24 13:02:38 +00:00

6 lines
179 B
Lua

vim.opt.commentstring = '//%s'
vim.opt.matchpairs:append('<:>')
local opts = { buffer = true, remap = false, silent = true }
vim.keymap.set('x', '0', ':PreProcIfWrap<CR>', opts)