goolord / alpha-nvim

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

Alpha sets window options, overriding lua config #106

Closed bennypowers closed 2 years ago

bennypowers commented 2 years ago

Users with init.lua containing:

vim.o.number         = true
vim.o.relativenumber = true

will find that alpha overrides their config at https://github.com/goolord/alpha-nvim/blob/4781fcfea5ddc1a92d41b32dc325132ed6fce7a8/lua/alpha.lua#L424

Alpha should remember the user config and reset it when closing

goolord commented 2 years ago

it's set with setlocal, the configuration is entirely local to the alpha buffer. way more users want nonu out of the box for alpha than don't. what you are experiencing is probably a problem with neovim's lua lua window option api that you're using in your branch. i linked the relevant issue in your PR https://github.com/neovim/neovim/issues/14670

bennypowers commented 2 years ago

yeah most likely. I've since updated my branch to solve that problem