NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
163 stars 16 forks source link

Galaxyline throws error when entered replace mode #26

Closed AkashKarnatak closed 2 years ago

AkashKarnatak commented 2 years ago

When I enter replace mode by pressing R, galaxyline throws the following error:

^I...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:25: in...ion <...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:24>
E15: Invalid expression: luaeval('require("galaxyline").component_decorator')("ViMode")
Press ENTER or type command to continue
NTBBloodbath commented 2 years ago

Hi, this is definitely unexpected and I'm not being able to reproduce this (I use replace mode by a LOT) :confused:

AkashKarnatak commented 2 years ago

It is weird that you aren't able to reproduce the error. I have tested this on NVIM v0.7.0-dev+759-g7b8fbbdeb, NVIM v0.6.0 and NVIM v0.5.1. Here's the minimal configuration that I am using

require('packer').startup(function()
          use 'wbthomason/packer.nvim'
          use {
                  'NTBBloodbath/galaxyline.nvim',
                   branch = 'main',
                   config = function() require'galaxyline.themes.eviline' end,
                   requires = {'kyazdani42/nvim-web-devicons', opt = true}
          }
end)

vim.cmd([[set termguicolors]])
RakerZh commented 2 years ago

I think violet color didn't set up in your themes so replace mode will be nil value. #27