From aea5d8b90c70df08b9188ecfdf93475f58dd71fb Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Mon, 20 Sep 2021 19:40:38 +0600 Subject: [PATCH] chore: fix typos --- README.md | 6 +++--- doc/lualine.txt | 7 ++++--- kkk.lua | 40 ---------------------------------------- 3 files changed, 7 insertions(+), 46 deletions(-) delete mode 100644 kkk.lua diff --git a/README.md b/README.md index 62825db..4e39c19 100644 --- a/README.md +++ b/README.md @@ -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`, `vim-plug` and given statusline plugin installed. -In controle just `vim-startuptime` and`vim-plug` is installed. -And mesured time is complete startuptime of vim not time spent -on specific plugin. +In control just `vim-startuptime` and`vim-plug` is installed. +And measured time is complete startuptime of vim not time spent +on specific plugin. These numbers are average of 20 runs. | control | lualine | lightline | airline | | :--------: | :-------: | :-------: | :-------: | diff --git a/doc/lualine.txt b/doc/lualine.txt index b40d136..5f7d3b9 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -35,9 +35,10 @@ Startup time performance measured with an amazing plugin dstein64/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-startuptime` and`vim-plug` is installed. And mesured time is complete -startuptime of vim not time spent on specific plugin. +`vim-plug` and given statusline plugin installed. In control just +`vim-startuptime` and`vim-plug` is installed. And measured time is complete +startuptime of vim not time spent on specific plugin. These numbers are average +of 20 runs. │control │ lualine │lightline│ airline │ │8.943 ms│10.140 ms│12.522 ms│38.850 ms│ diff --git a/kkk.lua b/kkk.lua deleted file mode 100644 index 394f45e..0000000 --- a/kkk.lua +++ /dev/null @@ -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