aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/lua.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-06-17 00:21:15 +0800
committerjdhao <jdhao@hotmail.com>2021-06-17 00:21:15 +0800
commit7ace83853411c27133b5052946150dc7348954f5 (patch)
treedae224e6aa8ee3659d3220a72fdca550985caf3d /after/ftplugin/lua.vim
parentd744b6e98f8166fa6b761e0d945bb45dedcca226 (diff)
update formatoptions for certain filetypes
Diffstat (limited to 'after/ftplugin/lua.vim')
-rw-r--r--after/ftplugin/lua.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/after/ftplugin/lua.vim b/after/ftplugin/lua.vim
index b611326..c629428 100644
--- a/after/ftplugin/lua.vim
+++ b/after/ftplugin/lua.vim
@@ -1,5 +1,6 @@
-" Disable inserting comment leader after hitting o or O
+" Disable inserting comment leader after hitting o or O or <Enter>
set formatoptions-=o
+set formatoptions-=r
set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing