lualine.nvim/lua/lualine/components
shadmansaleh c8750a35e0 enhance: allow components to be functions too (#81)
Some components like hostname, progress are so simple that
the component class setup is just unnecessary boilerplate.
Allowing them to be function simplifies things.
With this you can put your regular component functions in
~/.config/nvim/lua/lualine/components/ folder and treat then as
regular lualine components just like 'mode' or 'branch'.
Hopefully this will help lualine plugins grow.
2021-10-11 16:41:25 +06:00
..
special refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
branch.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
buffers.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
diagnostics.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
diff.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
encoding.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
fileformat.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
filename.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
filesize.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
filetype.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00
hostname.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
location.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
mode.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
progress.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
tabs.lua refactor: separate the child creation and initialization (#81) 2021-10-11 16:41:19 +06:00