Use `x` mapping so that the mapping does not also get enabled in select mode.
6 lines
179 B
Lua
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)
|