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

Save disables limelight

AmaruCoder opened this issue · comments

I really like this plugin, and I use it all the time for writing prose. But each save command (which I do often) disables the command, and I have to invoke it again. Is there a way to make it persistent? Thank you.

It's something in your config. You'll have to figure out what is effectively causing limelight to stop. e.g. If you're reloading colorscheme on BufWritePost, that'll clear hi LimelightDim unless you define the autocmd as "nested"

autocmd! BufWritePost .vimrc nested source %