f2f450d docs: remove sourcehut migration notice
~henriquehbr pushed to ~henriquehbr/nvim-startup.lua git
f2f450d docs: remove sourcehut migration notice
~henriquehbr pushed to ~henriquehbr/nvim-startup.lua git
Displays neovim startup time
If you're using one of these plugin managers:
The installation method is pretty much the same for all of them, simply initialize the plugin manager and include henriquehbr/nvim-startup.lua
on the list
Otherwise, if you're using pathogen
, simply clone it on your ~/.vim/bundle
directory:
$ git clone --depth 1 https://github.com/henriquehbr/nvim-startup.lua
nvim-startup
is intended to be immediately executed on (n)vim startup, so if your plugin manager has some sort ofopt
funcionality that marks it as a optional plugin, avoid it!
To get it up and running, first, require
it on your config:
require 'nvim-startup'.setup()
Then, the last step required for the plugin to work effectively, is to create a alias on your .bashrc
or .zshrc
like the one below:
alias nvim='nvim --startuptime /tmp/nvim-startuptime'
By default,
nvim-startup
uses/tmp/nvim-startuptime
as it's startup log file, but if you need to change that, you can specify a different path on theg:nvim_startup_file
global variable
After that, you're done, just reload your nvim and hopefully you will see a message just like that:
nvim-startup: running on the next (n)vim instance
Don't worry, that means the plugin still couldn't find the startup time log file on the first run, it's completely normal and expected to happen, it will work fine on subsequent runs of vim, with the message below:
nvim-startup: launched in <x> ms
The example below represents all the possible settings with their respective types and default values
require 'nvim-startup'.setup {
startup_file = '/tmp/nvim-startuptime' -- sets startup log path (string)
message = 'Whoa! those {} are pretty fast' -- sets a custom message (string | function)
message = function(time) -- function-based custom message
time < 100 and 'Just {}? really good!' or 'Those {} can get faster'
end
}
The following tools are needed in order to properly setup the development workflow:
If you're willing to contribute to nvim-startup
, it's highly recommended to follow the steps below (for organization purposes)
feat/<branch_name>
for featuresfix/<branch_name>
for bugfixeschore/<branch_name>
for small changes that doesn't fit the ones abovemake init
to setup the development environmentcommitlint
), examples below:
feat: <commit_message>
for featuresfix: <commit_message>
for bugfixeschore: <commit_message>
for small changes that doesn't fit the ones abovePull requests that stricly follow the recommendations above will have higher priority in contrast of those who don't