aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/arduino.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/arduino.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/arduino.lua')
-rw-r--r--runtime/ftplugin/arduino.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/ftplugin/arduino.lua b/runtime/ftplugin/arduino.lua
new file mode 100644
index 0000000000..f398d66a63
--- /dev/null
+++ b/runtime/ftplugin/arduino.lua
@@ -0,0 +1 @@
+vim.bo.commentstring = '// %s'