Added Lua stuff

This commit is contained in:
Talia 2017-10-30 16:52:24 +01:00
parent d4a429dfda
commit becf1b1e60

7
vimrc
View file

@ -376,3 +376,10 @@ autocmd!
au BufWritepost *.rb :set noexpandtab
au BufWritepost *.rb :retab!
augroup END
" --- LUA STUFF ---
au BufNewFile,BufRead *.lua :call <sid>init_lua_file()
function! s:init_lua_file()
command! -buffer Requires lex MatchingLines("^\\s*require\\>.*$")
endfunction!