aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/c.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-24 00:14:04 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-24 00:14:04 +0200
commit966d12ac730c83da90d60ab24eae539b2ea69441 (patch)
tree702f5f832796b572d0faee31c0eb15507e91f49a /after/ftplugin/c.lua
parent2a8020a2e9b7ef2ee77ddee14892127a4eb95187 (diff)
downloaddotfiles-966d12ac730c83da90d60ab24eae539b2ea69441.tar.gz
dotfiles-966d12ac730c83da90d60ab24eae539b2ea69441.zip
Update/Overhaul
Diffstat (limited to 'after/ftplugin/c.lua')
-rwxr-xr-xafter/ftplugin/c.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua
new file mode 100755
index 0000000..6af8a5c
--- /dev/null
+++ b/after/ftplugin/c.lua
@@ -0,0 +1,9 @@
+-- Fix C filetype comments
+vim.api.nvim_create_autocmd("Filetype", {
+ pattern = "c",
+ callback = function()
+ vim.bo.commentstring = "//%s"
+ end,
+ group = comment_augroup,
+})
+