summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-06 16:22:27 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-06 16:22:27 +0100
commit7c4d8d704a991c6f5cdbef0f4c7f1df871238a71 (patch)
tree0108cdc956e44cef239715f07ad0b7009985e2f7
parentf5f3c53368e1c39ddea76f68a9c106c7921deac4 (diff)
checkpoint
-rw-r--r--after/ftplugin/c.lua5
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")