diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-03-17 15:34:15 +0100 | 
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-03-17 15:34:15 +0100 | 
| commit | da7035666495a278bfc7885e4d9f11557f210357 (patch) | |
| tree | dee15f2eaa55b7e392bff39aaff2e2f966751377 /after/ftplugin/c.lua | |
| parent | 53f6e19f84ba06bbf143339deba84bc51cd6706e (diff) | |
checkpoint
Diffstat (limited to 'after/ftplugin/c.lua')
| -rw-r--r-- | after/ftplugin/c.lua | 7 | 
1 files changed, 4 insertions, 3 deletions
| 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", "<M-b>", mapcmd("make"), { desc = "Make" })  map("i", "<M-1>", "#if 1<cr>#endif<esc>O", { 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") | 
