From 7c4d8d704a991c6f5cdbef0f4c7f1df871238a71 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 6 Dec 2024 16:22:27 +0100 Subject: checkpoint --- after/ftplugin/c.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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", "", 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") -- cgit v1.2.3