Giter Club home page Giter Club logo

Comments (4)

angelPL avatar angelPL commented on August 21, 2024 1

I removed StatusLine and StatusLineNC from line 113 in goyo.vim

Path: ~/.vim/plugged/goyo.vim/autoload/goyo.vim

function! s:tranquilize()
  let bg = s:get_color('Normal', 'bg#')
  for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
            \ 'StatusLine', 'StatusLineNC', 'SignColumn']                   # line 113
    " -1 on Vim / '' on GVim
    if bg == -1 || empty(bg)
      call s:set_color(grp, 'fg', get(g:, 'goyo_bg', 'black'))
      call s:set_color(grp, 'bg', 'NONE')
    else
      call s:set_color(grp, 'fg', bg)
      call s:set_color(grp, 'bg', bg)
    endif
    call s:set_color(grp, '', 'NONE')
  endfor
endfunction

Before:

 \ 'StatusLine', 'StatusLineNC', 'SignColumn'] # Line 113

After:

 \ 'SignColumn'] # Line 113

and got interesting effect that I like.

This is somehow solving the issue, although it's not elegant.

Screenshots:

Before:

screenshot-goyo-original

After:

screenshot-goyo-modified

I hope it will help someone.

from goyo.vim.

hnamtang avatar hnamtang commented on August 21, 2024

In the ~/.vim/plugged/goyo.vim/autoload/goyo.vim delete 'StatusLine' in line 110 and add this line of code outside the for loop (between line 121 and 122)

call s:set_color('StatusLine', 'bg', 'NONE')

from goyo.vim.

mroavi avatar mroavi commented on August 21, 2024

In the ~/.vim/plugged/goyo.vim/autoload/goyo.vim delete 'StatusLine' in line 110 and add this line of code outside the for loop (between line 121 and 122)

call s:set_color('StatusLine', 'bg', 'NONE')

This solution only works if the line 109:

  let bg = s:get_color('Normal', 'bg#')

returns a color in place of -1 on Vim or '' on GVim.

A proper solution has to guarantee that StatusLine and StatusLineNC are highlighted differently as explained in the docs (:h StatusLineNC):

StatusLineNC	Status lines of not-current windows.
		Note: If this is equal to "StatusLine", Vim will use "^^^" in
		the status line of the current window.

@junegunn Any elegant solution to solve this? I haven't been able to think of any.

from goyo.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.