goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.84k stars 109 forks source link

use `gamma-ui`: shim out ui builder code #30

Closed goolord closed 2 years ago

goolord commented 2 years ago

this is a breaking change

use https://github.com/goolord/gamma-ui-nvim for the rendering code, the thought is that i can use this code as a library to construct several different types of vim gui plugins

goolord commented 2 years ago

there is an an extremely small performance regression on my machine, like an extra 0.5ms to source alpha. i'll see what i can do to get that down, but this could be a pretty big W if you install more than one plugin that uses gamma-ui

goolord commented 2 years ago

most people should only need to add 'goolord/gamma-ui-nvim' to requires

goolord commented 2 years ago

image first result is HEAD/main, second result is HEAD/alpha-ui

i think the difference would be smaller/nonexistent if lua had first class autocmd

goolord commented 2 years ago

actually the difference is like .2 ms with more samples, which seems more in line with what i would expect

goolord commented 2 years ago

this is pretty unexciting to me atm. i will reopen this when i feel more motivated to make new plugins / when lua gets more first class support in neovim ` ~ `