summaryrefslogtreecommitdiff
path: root/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin')
-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")