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).
This commit is contained in:
Soham Shanbhag
2024-06-03 16:48:43 +09:00
committed by GitHub
parent 3a1515bfee
commit 054a287dbe
12 changed files with 12 additions and 8 deletions

View File

@@ -0,0 +1 @@
vim.bo.commentstring = '// %s'