summaryrefslogtreecommitdiff
path: root/after/ftplugin/c.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/c.lua')
-rw-r--r--after/ftplugin/c.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua
index a33d4e5..df01cb4 100644
--- a/after/ftplugin/c.lua
+++ b/after/ftplugin/c.lua
@@ -21,8 +21,9 @@ 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"
+
local projects = require("config.projects")
-if projects and not projects.IsInProject then
+if projects and not projects.InProject then
vim.bo.makeprg = "./build.sh"
end