diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-12-06 16:22:27 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-12-06 16:22:27 +0100 |
commit | 7c4d8d704a991c6f5cdbef0f4c7f1df871238a71 (patch) | |
tree | 0108cdc956e44cef239715f07ad0b7009985e2f7 | |
parent | f5f3c53368e1c39ddea76f68a9c106c7921deac4 (diff) |
checkpoint
-rw-r--r-- | after/ftplugin/c.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua index 9696f73..70fe8ef 100644 --- a/after/ftplugin/c.lua +++ b/after/ftplugin/c.lua @@ -16,9 +16,12 @@ map("n", ",i", function() vim.cmd("normal ''") end, { desc = "Include header for word under cursor" }) map("n", ",f", mapcmd("CF"), { desc = "Toggle formatting" }) +map("n", "<M-b>", mapcmd("make"), { desc = "Make" }) vim.opt.commentstring = "// %s" -- disable indent in switch statement vim.opt.cinoptions = "l1" -vim.opt.makeprg = "gccg " .. vim.fn.expand("%") +vim.bo.makeprg = "gccg " .. vim.fn.expand("%") + +vim.cmd("TSDisable indent") |