aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/indent.lua
diff options
context:
space:
mode:
authorSoham Shanbhag <sohamshanbhag@users.noreply.github.com>2024-06-03 16:48:43 +0900
committerGitHub <noreply@github.com>2024-06-03 09:48:43 +0200
commit054a287dbe6fe4308d26ec593da2057641f2bb9b (patch)
tree522fd2f143226051da5ab3f279454581263d301b /runtime/ftplugin/indent.lua
parent3a1515bfee59710b4da9bfdf0fc4ecb5b13a00db (diff)
downloadrneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.tar.gz
rneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.tar.bz2
rneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.zip
feat(ftplugin): change 'commentstring' to `// %s` for C/C++ (#29085)
Problem: The default commentstring for C/C++ can lead to invalid code when commenting and does not match the Nvim codebase. Solution: Change commentstring to `// %s` as used by Neovim. Also set all commentstrings that derive from the default C string explicitly (and correctly).
Diffstat (limited to 'runtime/ftplugin/indent.lua')
-rw-r--r--runtime/ftplugin/indent.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/indent.lua b/runtime/ftplugin/indent.lua
index b4e68148f5..f398d66a63 100644
--- a/runtime/ftplugin/indent.lua
+++ b/runtime/ftplugin/indent.lua
@@ -1 +1 @@
-vim.bo.commentstring = '/*%s*/'
+vim.bo.commentstring = '// %s'