From 6b7ec75352940b419acb09dd455be1ebcaff4a52 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 20 Jun 2019 00:11:04 +0200 Subject: 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. --- ftplugin/lua.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ftplugin/lua.vim (limited to 'ftplugin/lua.vim') 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:-- -- cgit v1.2.3