From 379cd763460659bfdbd49386108a9a5ab68663c2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 4 Nov 2024 07:35:34 +0100 Subject: checkpoint --- after/ftplugin/c.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'after/ftplugin') diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua index b5b06d0..0b5c163 100644 --- a/after/ftplugin/c.lua +++ b/after/ftplugin/c.lua @@ -16,4 +16,7 @@ map("n", ",i", function() vim.cmd("normal ''") end, { desc = "Include header for word under cursor" }) map("n", ",f", mapcmd("CF"), { desc = "Toggle formatting" }) -vim.o.commentstring = "// %s" + +vim.opt.commentstring = "// %s" +-- disable indent in switch statement +vim.opt.cinoptions = "l1" -- cgit v1.2.3