ful1e5 / onedark.nvim

Atom's iconic One Dark theme for Neovim, written in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seems to mess up lualine

opened this issue · comments

Lualine installed by itself with the theme set to onedark looks fine. But once I install this onedark theme plugin, I get the error:

Error executing vim.schedule lua callback: ...pack/packer/start/lualine.nvim/lua/lualine/hi
ghlight.lua:29: Vim(highlight):E411: highlight group not found: lualine_c_normal
Press ENTER or type command to continue

My config for reference:

local fn = vim.fn
local cmd = vim.cmd
local opt = vim.opt

opt.expandtab = true
opt.shiftwidth = 4
opt.tabstop = 4
opt.smartindent = true

opt.termguicolors = true
opt.number = true

-- PLUGINS

local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local packer_missing = fn.empty(fn.glob(install_path)) > 0
if packer_missing then
    fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
    cmd([[packadd packer.nvim]])
end

require('packer').startup(function()
    use 'wbthomason/packer.nvim'

    use 'b3nj5m1n/kommentary'

    use {
      'hoob3rt/lualine.nvim',
      requires = {'kyazdani42/nvim-web-devicons', opt = true},
      config = function()
          require('lualine').setup({
              options = {
                  theme='onedark',
          }
          })
      end
    }

    use {
      'ful1e5/onedark.nvim',
      config = function()
          require('onedark').setup({
              hideInactiveStatusline = true
          })
      end
    }

    use {
      'nvim-treesitter/nvim-treesitter',
      run = ':TSUpdate',
      config = function()
          require('nvim-treesitter.configs').setup {
              ensure_installed = {"lua", "python"},
              highlight = {enable = true}
          }
      end
    }


    use {
      'lewis6991/gitsigns.nvim',
      requires = { 'nvim-lua/plenary.nvim' },
      config = function() require('gitsigns').setup() end 
    }
end)

Even if I have onedark.nvim simply installed without having `.setup()` run, this issue occurs.