Skip to content

[Bug]: clash /w nvim-lualine's built-in jellybeans theme #34

@Kache

Description

@Kache

Prerequisites

  • I have updated jellybeans.nvim to the latest version
  • I have searched existing issues to avoid creating duplicates
  • I have verified this issue is related to jellybeans.nvim and not another plugin

Neovim Version

NVIM v0.11.5

Terminal Emulator

Windows Terminal

Operating System

Windows 11, WSL2, Debian 13.1

Terminal Colors

Yes

Describe the bug

Starting /w minimal lazy.nvim and lualine.nvim (see minimal config, below), it looks like:

Image

Which matches screenshots: https://github.com/nvim-lualine/lualine.nvim/blob/master/THEMES.md#jellybeans

Uncommenting the jellybeans.nvim lines (it is sufficient to only install, without any extra config/setup), it looks like:

Image

Worth noting this is what lualine looks like with theme = 'auto' (IIUC, derive from highlight colors) if jellybean.nvim is installed

Expected behavior

Installation of jellybeans.nvim shouldn't supersede lualine.nvim's built-in jellybeans theme

Screenshots

Added inline, above

Minimal configuration example

-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  local lazyrepo = "https://github.com/folke/lazy.nvim.git"
  local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
  if vim.v.shell_error ~= 0 then
    vim.api.nvim_echo({
      { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
      { out, "WarningMsg" },
      { "\nPress any key to exit..." },
    }, true, {})
    vim.fn.getchar()
    os.exit(1)
  end
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"

-- Setup lazy.nvim
require("lazy").setup({
  spec = {
    -- add your plugins here
    {
      'nvim-lualine/lualine.nvim',
      dependencies = { 'nvim-tree/nvim-web-devicons' }
    },
    -- {
    --   "wtfox/jellybeans.nvim",
    --   lazy = false,
    --   priority = 1000,
    --   opts = { },
    -- },
  },
  -- Configure any other settings here. See the documentation for more details.
  -- colorscheme that will be used when installing plugins.
  install = { colorscheme = { "habamax" } },
  -- automatically check for plugin updates
  checker = { enabled = true },
})

-- vim.cmd.colorscheme('jellybeans')

require('lualine').setup({
  options = {
    theme = 'jellybeans',
  },
})

Additional context

Apparent workaround, which seems to more explicitly set lualine's theme to its own jellybeans theme:

require('lualine').setup({
  options = {
    theme = require('lualine.themes.jellybeans'),
  },
})

I've also cross-posted to: nvim-lualine/lualine.nvim#1491

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions