From 054a287dbe6fe4308d26ec593da2057641f2bb9b Mon Sep 17 00:00:00 2001 From: Soham Shanbhag Date: Mon, 3 Jun 2024 16:48:43 +0900 Subject: 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). --- runtime/ftplugin/calender.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ftplugin/calender.lua') diff --git a/runtime/ftplugin/calender.lua b/runtime/ftplugin/calender.lua index b4e68148f5..984111a08b 100644 --- a/runtime/ftplugin/calender.lua +++ b/runtime/ftplugin/calender.lua @@ -1 +1 @@ -vim.bo.commentstring = '/*%s*/' +vim.bo.commentstring = '/* %s */' -- cgit From 8369590eb21535ecf69932998fc86cdee1661238 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 4 Jun 2024 12:17:07 +0200 Subject: fix(runtime): remove obsolete ftplugin/calender.lua --- runtime/ftplugin/calender.lua | 1 - 1 file changed, 1 deletion(-) delete mode 100644 runtime/ftplugin/calender.lua (limited to 'runtime/ftplugin/calender.lua') diff --git a/runtime/ftplugin/calender.lua b/runtime/ftplugin/calender.lua deleted file mode 100644 index 984111a08b..0000000000 --- a/runtime/ftplugin/calender.lua +++ /dev/null @@ -1 +0,0 @@ -vim.bo.commentstring = '/* %s */' -- cgit