xolox / vim-lua-ftplugin

Lua file type plug-in for the Vim text editor
http://peterodding.com/code/vim/lua-ftplugin
187 stars 27 forks source link

Autocheck syntax lua in ruby file #17

Open onemanstartup opened 10 years ago

onemanstartup commented 10 years ago

This function was called when i'm edited ruby file. It is fast function, but anyway. What if every filetype plugin checks that every time. Anyway, thanks for plugin.

FUNCTION  xolox#lua#autocheck()
Called 9 times
Total time:   0.000191
 Self time:   0.000191

count  total (s)   self (s)
    9              0.000038   if &filetype == 'lua'
                                if xolox#misc#option#get('lua_check_syntax', 1)
                                  call xolox#lua#checksyntax()
                                endif
                                if xolox#misc#option#get('lua_check_globals', 0) && empty(getqflist())
                                  call xolox#lua#checkglobals(0)
                                endif
                              endif