Giter Site home page Giter Site logo

Comments (3)

tanvirtin avatar tanvirtin commented on June 11, 2024

Hi @timsofteng this is an issue related to your colorscheme. Judging from the screenshot I am guessing you are using gruvbox colorscheme. When you inspect these lines you can see that the LineNr highlight is not the same as SignColumn, which is the reason you are seeing that.

This should not be a problem in most colorschemes as they handle this scenario. This project is not responsible for fixing issues related to external colorscheme issues.

If you want to fix it you can add highlight! link SignColumn LineNr as autocmd in your dotfile configurations.

Closing this issue.

from vgit.nvim.

timsofteng avatar timsofteng commented on June 11, 2024

Hi @timsofteng this is an issue related to your colorscheme. Judging from the screenshot I am guessing you are using gruvbox colorscheme. When you inspect these lines you can see that the LineNr highlight is not the same as SignColumn, which is the reason you are seeing that.

This should not be a problem in most colorschemes as they handle this scenario. This project is not responsible for fixing issues related to external colorscheme issues.

If you want to fix it you can add highlight! link SignColumn LineNr as autocmd in your dotfile configurations.

Closing this issue.

I've tried three different colorschemes and all thee display sings in wrong way.
In other hand gitsigns works correctly

It is gitsigns:
image

It is vgit:
image

Are you sure the problem is with colorscheme?

from vgit.nvim.

tanvirtin avatar tanvirtin commented on June 11, 2024

Yes I am sure.

The reason none of those colorscheme work is again because of this.

The reason gitsigns works is because they implemented highlights of some other plugin such as vim-signify on top of their own highlights.

Your gruvbox colorscheme fixes the SignColumn and LineNr issue by implementing highlights which belongs to vim-signify as you can see from here.

If you don't like my previous solution you can also try this in your setup:

require('vgit').setup({
    hunk_sign = {
        priority = 10,
        signs = {
            add = {
                name = 'SignifySignAdd',
                hl = 'SignifySignAdd',
                text = ''
            },
            remove = {
                name = 'SignifySignChange',
                hl = 'SignifySignChange',
                text = ''
            },
            change = {
                name = 'SignifySignDelete',
                hl = 'SignifySignDelete',
                text = ''
            },
        },
    },
})

Hope this helps!

from vgit.nvim.

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.