Skip to content

Missing vim.o.background  #391

@gregh3269

Description

@gregh3269

I am just starting nvim, so sorry if this is not an issue.

Starting nvim/appimage the screen is white with no welcome message. I use a white terminal background gnome.

If I look at ~/.local/share/nvim/lazy/onedark.nvim/lua/onedark/init.lua it uses vim.o.background to set its colours:

if vim.o.background == 'light' then
M.set_options('style', 'light')
elseif vim.g.onedark_config.style == 'light' then
M.set_options('style', 'dark')
end

The ~/.config/nvim/init.lua needs a 'dark' or 'light' setting

vim.o.background = 'dark'

to set a dark terminal as a default. The welcome message then shows and its dark.

To Reproduce

  1. Start nvim

Desktop

  • OS: Debian 12
  • Terminal: Gnome Version 3.46.8 for GNOME 43

Neovim Version

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Cheers Greg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions