You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.9.2
Operating system/version
Fedora Linux 38
Describe the bug
I don't use lualine and rely on the native statusline instead, however the change introduced in This recent commit resets the laststatus option in the alpha-nvim config function. Therefore, my setting (vim.o.laststatus = 2) from the options.lua file gets overriden when as soon as that function runs.
So far my workaround has been to copy-paste the config function an remove the offending line, but I feel like there should be a better solution.
In any case, I feel it might be bad practice to change a global setting from a plugin's config function as that can easily lead to unexpected behavior.
Steps To Reproduce
vim.o.laststatus = 2 in options.lua
start nvim with alpha-nvim enabled and lualine disabled
Expected Behavior
The custom value set in the options.lua file should not be overwritten.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{"folke/LazyVim", import="lazyvim.plugins"},
{{"nvim-lualine/lualine.nvim", enabled=false}},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
vim.opt.laststatus=2
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.2
Operating system/version
Fedora Linux 38
Describe the bug
I don't use lualine and rely on the native statusline instead, however the change introduced in This recent commit resets the
laststatus
option in the alpha-nvim config function. Therefore, my setting (vim.o.laststatus = 2
) from the options.lua file gets overriden when as soon as that function runs.So far my workaround has been to copy-paste the config function an remove the offending line, but I feel like there should be a better solution.
In any case, I feel it might be bad practice to change a global setting from a plugin's config function as that can easily lead to unexpected behavior.
Steps To Reproduce
vim.o.laststatus = 2
in options.luaExpected Behavior
The custom value set in the options.lua file should not be overwritten.
Repro
The text was updated successfully, but these errors were encountered: