Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim update #67

Closed
honungsburk opened this issue Mar 29, 2018 · 2 comments
Closed

Neovim update #67

honungsburk opened this issue Mar 29, 2018 · 2 comments

Comments

@honungsburk
Copy link

What happened

After updating the plugin two problems have cropped up.

Problem 1

Before the update, the colors of my comments looked like the one in the following screenshot:

screenshot from 2018-03-29 21-01-30

Now they've turned blue:

screenshot from 2018-03-29 21-00-37

Problem 2

When exiting Goyo I get the following error messages:

screenshot from 2018-03-29 21-01-37

I'm using the following code related to Goyo:

function! RelativeNumberToggle()                                                                                                                                                                               
   :augroup relativenumbertoggle                                                                                                                                                                              
   :  autocmd!  
   :  autocmd BufEnter,FocusGained,InsertLeave * set relativenumber        
   :  autocmd BufLeave,FocusLost,InsertEnter   * set norelativenumber              
   :augroup END                                                                                                                                                                                               
 endfunction 

 function! s:goyo_enter()                                                                                                                                                                                       
   Limelight                                                                                                                                                                                                  
     set norelativenumber                                                                                                                                                                                       
     set nonumber                                                                                                                                                                                               
     au! relativenumbertoggle                                                                                                                                                                                   
 endfunction                                                                                                                                                                                                    
                                                                                                                                                                                                                
 function! s:goyo_leave()                                                                                                                                                                                              
   Limelight!                                            
   set relativenumber                     
   set number                                                                                                                                                                                                 
   :call RelativeNumberToggle()                                                                                                                                                                               
endfunction                                                                                                                                                                                                    
                                                                                                                                                                                                          
autocmd! User GoyoEnter nested call <SID>goyo_enter()   
autocmd! User GoyoLeave nested call <SID>goyo_leave()    

Machine Info

  • neovim:
  • NVIM v0.2.3-dev:
  • Ubuntu 17.10:
  • Terminal:
@dsifford
Copy link
Member

That's pretty strange.

I'm not familiar with what Goyo is, but the error message that is showing up is one that would occur when attempting to reset one of the script variables that we use (which, as you might guess, are locked).

What's the output you get when you run :verbose hi Comment?

Also, does anything look strange in the dependency chain when you run :scriptnames?

@honungsburk
Copy link
Author

Manage to solve the Goyo issue by simply reinstalling Goyo.

also

running :color dracula manually fixes all color issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants