junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird error in neovim

Randuin opened this issue · comments

Getting Vim(return):E488: Trailing characters in neovim

Cannot reproduce on my machine. Please provide the minimal vimrc that can be used to reproduce the problem.

I think this is neovim issue because I use the same vimrc for both and error only on neovim

edit: specifically neovim with true color only, normal neovim unaffected.
edit2: Even Goyo affected, there is ~ scattering around vim window

So it's related to this: junegunn/goyo.vim#71

I haven't had time to set up Neovim with truecolor terminal.

It's related to neovim no handling synIDattr() as it should : synIDattr(id, 'fg#') (called there) returns the name of the color and not the hex code, which causes the s:hex2rgb function to crash here.

As a quick workaround, setting the g:limelight_conceal_guifb before loading the plugin prevents the crash.

Any updates on neovim with true color support? The plugin now doesn't do anything at all, even if g:limelight_conceal_guifb is set.

@ahmedelgabri Should work now.

I'm getting this error again… running neovim with truecolors in iTerm 2: https://gist.github.com/evantravers/97d6e5e8d8ccdd93be5a2acec6926e46

@evantravers Make sure to upgrade Neovim. Note that this variable is now deprecated in Neovim. Also check out #33.

Thanks @junegunn! You are right.

I also had same issues when I trigger :Limelight, and I solved by putting set termguicolors on my vimrc.