diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-08 00:42:36 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-08 00:42:36 +0100 |
commit | e73548ec28678ab3457c61e6438ea51f32bc95da (patch) | |
tree | ee77cd63bb3d029e1fdaee2721eece37c74a91d5 /after/ftplugin/c.lua | |
parent | 756ae4df44f14a46cca539e11c616d7a7db90e94 (diff) | |
parent | 17179db065988423638e3f30b831b7d553380687 (diff) |
Merge branch 'main' of db:nvim
Diffstat (limited to 'after/ftplugin/c.lua')
-rw-r--r-- | after/ftplugin/c.lua | 1 |
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 |