From da7035666495a278bfc7885e4d9f11557f210357 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 17 Mar 2025 15:34:15 +0100 Subject: checkpoint --- after/ftplugin/c.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'after/ftplugin') diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua index af85156..a33d4e5 100644 --- a/after/ftplugin/c.lua +++ b/after/ftplugin/c.lua @@ -16,13 +16,14 @@ 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" }) map("i", "", "#if 1#endifO", { desc = "Insert `#if 1` block" }) vim.opt.commentstring = "// %s" -- disable indent in switch statement vim.opt.cinoptions = "l1" - -vim.bo.makeprg = "./build.sh" +local projects = require("config.projects") +if projects and not projects.IsInProject then + vim.bo.makeprg = "./build.sh" +end vim.cmd("TSDisable indent") -- cgit v1.2.3