olimorris / onedarkpro.nvim

🎨 Atom's iconic One Dark theme. Cacheable, fully customisable, Tree-sitter and LSP semantic token support. Comes with variants
MIT License
815 stars 46 forks source link

[Bug]: lualine background has disappeared #223

Closed tristan957 closed 10 months ago

tristan957 commented 10 months ago

Your minimal.lua config

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "olimorris/onedarkpro.nvim",
    opts = {
      -- Your OneDarkPro config goes here
    },
    config = true
  },
  {
    'nvim-lualine/lualine.nvim',
    dependencies = { 'nvim-tree/nvim-web-devicons' }
  }
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

require('lualine').setup({ options = { theme = "onedark" }})

vim.cmd("colorscheme onedark")

Error messages

No response

Describe the bug

There is no background color on the lualine theme.

Reproduce the bug

nvim --clean -u minimal.lua

Final checks

tristan957 commented 10 months ago

image

olimorris commented 10 months ago

Great spot. I missed that in #221. Should be resolved in the latest commit.

tristan957 commented 10 months ago

You're the best! Thanks Oli!