junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players
MIT License
2.36k stars 54 forks source link

Weird error in neovim #16

Closed Randuin closed 8 years ago

Randuin commented 9 years ago

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

junegunn commented 9 years ago

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

kuntau commented 9 years ago

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

junegunn commented 9 years ago

So it's related to this: https://github.com/junegunn/goyo.vim/issues/71

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

thufschmitt commented 9 years ago

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.

ahmedelgabri commented 8 years ago

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.

junegunn commented 8 years ago

@ahmedelgabri Should work now.

ahmedelgabri commented 8 years ago

Thanks @junegunn

evantravers commented 8 years ago

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

junegunn commented 8 years ago

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

evantravers commented 8 years ago

Thanks @junegunn! You are right.

digression99 commented 3 years ago

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