junegunn / junegunn/goyo.vim

Error when entering Goyo on BufRead

Open
#207 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
4.7k
Forks
118
PR merge metrics
No merged PRs in 30d

Description

I get the following error with an autocmd to enter Goyo:

Error detected while processing function lightline#update_disable

Vimrc to repro:

call plug#begin('~/.vim/plugged')
    Plug 'itchyny/lightline.vim'
    Plug 'junegunn/goyo.vim'
call plug#end()
au BufRead,BufNewFile * Goyo

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the error with the Vim configuration shown, including lightline.vim, goyo.vim, and the BufRead/BufNewFile autocmd. Start from the reported lightline#update_disable function and determine why entering Goyo during that autocmd triggers the error; done means the repro no longer reports the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.