From dd3e9dd2f4d80b643acd9410991b4df33336e8a3 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 3 May 2022 00:59:32 +0800 Subject: [PATCH] add map to run lua file --- after/ftplugin/lua.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/after/ftplugin/lua.vim b/after/ftplugin/lua.vim index c629428..e41404d 100644 --- a/after/ftplugin/lua.vim +++ b/after/ftplugin/lua.vim @@ -6,3 +6,5 @@ set tabstop=2 " number of visual spaces per TAB set softtabstop=2 " number of spaces in tab when editing set shiftwidth=2 " number of spaces to use for autoindent set expandtab " expand tab to spaces so that tabs are spaces + +nnoremap :luafile %