summaryrefslogtreecommitdiff
path: root/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/c.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua
index d0d65be..9696f73 100644
--- a/after/ftplugin/c.lua
+++ b/after/ftplugin/c.lua
@@ -20,3 +20,5 @@ map("n", ",f", mapcmd("CF"), { desc = "Toggle formatting" })
vim.opt.commentstring = "// %s"
-- disable indent in switch statement
vim.opt.cinoptions = "l1"
+
+vim.opt.makeprg = "gccg " .. vim.fn.expand("%")