rhysd/vim-startuptime

Parse error occurs by Lua require() in Neovim HEAD

kawarimidoll opened this issue ยท 5 comments

nvim --startuptime shows Lua require() by neovim/neovim#19267 , the line causes parse error.

image

rhysd commented

Can you show example of nvim --startuptime output including Lua's require()?

This is an output of nvim -u NONE --startuptime start-u.log in my local environment.

times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.064  000.064: --- NVIM STARTING ---
002.332  002.268: event init
003.612  001.280: early init
010.938  007.327: locale set
012.114  001.176: init first window
021.712  009.598: inits 1
021.961  000.249: window checked
021.963  000.003: parsing arguments
023.515  000.278  000.278: require('vim.shared')
023.699  000.101  000.101: require('vim._meta')
023.701  000.180  000.079: require('vim._editor')
023.703  000.536  000.079: require('vim._init_packages')
023.705  001.205: init lua interpreter
025.714  002.009: expanding arguments
026.254  000.540: inits 2
026.707  000.453: init highlight
026.709  000.001: waiting for UI
030.034  003.325: done waiting for UI
030.050  000.016: init screen for UI
030.111  000.061: init default mappings
030.125  000.013: init default autocommands
030.127  000.002: sourcing vimrc file(s)
030.139  000.012: inits 3
034.345  004.206: reading ShaDa
036.049  001.704: opening buffers
036.052  000.002: BufEnter autocommands
036.055  000.003: editing files in windows
036.103  000.049: VimEnter autocommands
036.106  000.003: UIEnter autocommands
036.107  000.002: before starting main loop
037.467  001.360: first screen update
037.469  000.002: --- NVIM STARTED ---
rhysd commented

Thanks. I understood the format.

rhysd commented

v1.3.0 was released. Please try it. If you still see some errors, please let me know by leaving a comment here.

https://github.com/rhysd/vim-startuptime/releases/tag/v1.3.0

Thank you, it works well ๐Ÿ˜„