aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-06-20 00:11:04 +0200
committerTeddy Wing2019-06-20 00:11:04 +0200
commit6b7ec75352940b419acb09dd455be1ebcaff4a52 (patch)
tree54b3c6134802150ea8d4a26abd63ebe259683cc8
parent8eedae802b1ee5e4f43cfa39b3d7962afcb144ed (diff)
downloaddotvim-6b7ec75352940b419acb09dd455be1ebcaff4a52.tar.bz2
Add ftplugin/lua.vim
* Set 'commentstring' * Fix comment wrapping by adding `--` to 'comments'. Otherwise no leading comment markers would be inserted when text wrapped to the next line.
-rw-r--r--ftplugin/lua.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftplugin/lua.vim b/ftplugin/lua.vim
new file mode 100644
index 0000000..222abff
--- /dev/null
+++ b/ftplugin/lua.vim
@@ -0,0 +1,7 @@
+" Lua vim settings
+
+" Comment string
+setlocal commentstring=--\ %s
+
+" Make comment wrapping work
+setlocal comments+=b:--