chore: fix typos
This commit is contained in:
parent
4ca1a8fd00
commit
aea5d8b90c
|
@ -63,9 +63,9 @@ Startup time performance measured with an amazing plugin [dstein64/vim-startupti
|
||||||
|
|
||||||
All times are measured with clean `init.vim` with only `vim-startuptime`,
|
All times are measured with clean `init.vim` with only `vim-startuptime`,
|
||||||
`vim-plug` and given statusline plugin installed.
|
`vim-plug` and given statusline plugin installed.
|
||||||
In controle just `vim-startuptime` and`vim-plug` is installed.
|
In control just `vim-startuptime` and`vim-plug` is installed.
|
||||||
And mesured time is complete startuptime of vim not time spent
|
And measured time is complete startuptime of vim not time spent
|
||||||
on specific plugin.
|
on specific plugin. These numbers are average of 20 runs.
|
||||||
|
|
||||||
| control | lualine | lightline | airline |
|
| control | lualine | lightline | airline |
|
||||||
| :--------: | :-------: | :-------: | :-------: |
|
| :--------: | :-------: | :-------: | :-------: |
|
||||||
|
|
|
@ -35,9 +35,10 @@ Startup time performance measured with an amazing plugin
|
||||||
dstein64/vim-startuptime <https://github.com/dstein64/vim-startuptime>
|
dstein64/vim-startuptime <https://github.com/dstein64/vim-startuptime>
|
||||||
|
|
||||||
All times are measured with clean `init.vim` with only `vim-startuptime`,
|
All times are measured with clean `init.vim` with only `vim-startuptime`,
|
||||||
`vim-plug` and given statusline plugin installed. In controle just
|
`vim-plug` and given statusline plugin installed. In control just
|
||||||
`vim-startuptime` and`vim-plug` is installed. And mesured time is complete
|
`vim-startuptime` and`vim-plug` is installed. And measured time is complete
|
||||||
startuptime of vim not time spent on specific plugin.
|
startuptime of vim not time spent on specific plugin. These numbers are average
|
||||||
|
of 20 runs.
|
||||||
|
|
||||||
│control │ lualine │lightline│ airline │
|
│control │ lualine │lightline│ airline │
|
||||||
│8.943 ms│10.140 ms│12.522 ms│38.850 ms│
|
│8.943 ms│10.140 ms│12.522 ms│38.850 ms│
|
||||||
|
|
40
kkk.lua
40
kkk.lua
|
@ -1,40 +0,0 @@
|
||||||
local config = {
|
|
||||||
options = {
|
|
||||||
icons_enabled = true,
|
|
||||||
theme = 'nord',
|
|
||||||
component_separators = { left = '', right = '' },
|
|
||||||
section_separators = { left = '', right = '' },
|
|
||||||
disabled_filetypes = {},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
lualine_a = { 'mode' },
|
|
||||||
lualine_b = { 'branch', 'diff', { 'diagnostics', sources = { 'nvim_lsp', 'coc' } } },
|
|
||||||
lualine_c = { 'filename' },
|
|
||||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
|
||||||
lualine_y = { 'progress' },
|
|
||||||
lualine_z = { 'location' },
|
|
||||||
},
|
|
||||||
inactive_sections = {
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_c = { 'filename' },
|
|
||||||
lualine_x = { 'location' },
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {},
|
|
||||||
},
|
|
||||||
tabline = {},
|
|
||||||
extensions = {},
|
|
||||||
}
|
|
||||||
|
|
||||||
local lualine = require'lualine'
|
|
||||||
lualine.setup(config)
|
|
||||||
vim.g.actual_curbuf = tostring(vim.fn.bufnr())
|
|
||||||
vim.g.actual_curwin = tostring(vim.fn.bufwinid(vim.fn.bufnr()))
|
|
||||||
local num = 10000
|
|
||||||
local bench = require('plenary.profile').benchmark
|
|
||||||
local time = bench(num, function()
|
|
||||||
lualine.statusline(true)
|
|
||||||
end)
|
|
||||||
print(string.format('render %s time : *%s* ms', num, time))
|
|
||||||
vim.g.actual_curbuf = nil
|
|
||||||
vim.g.actual_curwin = nil
|
|
Loading…
Reference in New Issue