summaryrefslogtreecommitdiff
path: root/after/ftplugin/c.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/c.lua')
-rw-r--r--after/ftplugin/c.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua
index 70fe8ef..864a22a 100644
--- a/after/ftplugin/c.lua
+++ b/after/ftplugin/c.lua
@@ -17,6 +17,7 @@ map("n", ",i", function()
end, { desc = "Include header for word under cursor" })
map("n", ",f", mapcmd("CF"), { desc = "Toggle formatting" })
map("n", "<M-b>", mapcmd("make"), { desc = "Make" })
+map("i", "<M-1>", "#if 1<cr>#endif<esc>O", { desc = "Insert `#if 1` block" })
vim.opt.commentstring = "// %s"
-- disable indent in switch statement