diff options
Diffstat (limited to 'after/ftplugin/c.lua')
-rw-r--r-- | after/ftplugin/c.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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" |