Comments (6)
The problem is that SignColumn
has been linked to LineNr
which is not expected, the expected output should be:
:hi SignColumn
SignColumn xxx ctermfg=4 ctermbg=248 guifg=#4b505b guibg=#eef1f4
This is caused by
Plug 'airblade/vim-gitgutter'
So it's not an issue of this color scheme, it's an issue of gitgutter. I don't understand why the author of gitgutter links SignColumn
to LineNr
.
To solve this problem, you can
- Open an issue in airblade/vim-gitgutter
- Use other plugin instead, for example: mhinz/vim-signify, neoclide/coc-git
from edge.
I can't reproduce this, please provide:
- Your vim version.
- Minimal vimrc.
- The output of
:hi SignColumn
when using minimal vimrc.
from edge.
This is what I have:
-
Your vim version
neovim v0.4.3 -
Minimal vimrc
call plug#begin()
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-commentary'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'sheerun/vim-polyglot'
Plug 'sainnhe/edge'
call plug#end()
if has("termguicolors")
set termguicolors
endif
set background=light
let g:lightline = { 'colorscheme': 'edge' }
let g:edge_disable_italic_comment = 1
colo edge
set number
set tw=80
set cc=+1
set hidden
set tabstop=2
set shiftwidth=2
set updatetime=100
set expandtab
set si
set ignorecase
set smartcase
set lazyredraw
set showmatch
filetype plugin on
filetype indent on
- The output of
:hi SignColumn
when using minimal vimrc.
:hi SignColumn
SignColumn xxx ctermfg=4 ctermbg=248 guifg=#4b505b guibg=#eef1f4
links to LineNr
from edge.
Awesome, thank you for the info. I'll look more into it.
from edge.
Actually the SignColumn is fine: the problem is with the background colour of the signs.
I don't understand why the author of gitgutter links
SignColumn
toLineNr
.
vim-gitgutter defaults to linking SignColumn
to LineNr
because colour schemes often define them with different background colours, and lots of people opened issues wanting them to look the same. (The code is here.) Note that you can opt out of this.
Anyway, you can see that the resulting values for ctermfg, ctermbg, guifg, and guibg are all as expected.
As for why the signs' background colours are wrong – I will look into this further at airblade/vim-gitgutter#696.
from edge.
Sorry, I misunderstood the colorscheme: I thought the sign column was supposed to be white, not grey; i.e. that the sign backgrounds were wrong, not the sign column.
As @sainnhe said, the problem was vim-gitgutter linking SignColumn
to LineNr
. This was put in 5 years ago when few plugins used signs and therefore most colorschemes at the time had ugly sign columns. Now the situation has changed – there are many plugins using signs and many carefully designed colorschemes – so it makes sense for vim-gitgutter not to adjust the SignColumn
any more (airblade/vim-gitgutter@0da302c).
from edge.
Related Issues (20)
- Black background HOT 1
- How can I change the highlight of line when cursor move? HOT 1
- Support color for fzf.vim HOT 1
- Unexpected DiagnosticWarn Foreground Color HOT 3
- Change guibg not work HOT 1
- Edge doesn't appropriate with vim stable 8.2.2824 HOT 5
- The color quite hard to read in command mode. HOT 1
- Undercurl highlights rendered as underline HOT 3
- No border in floaterm fzf. HOT 1
- [Question] Is there any way to change vim colorscheme and status line theme at the same time? HOT 1
- Wrong coloring with Treesitter HOT 3
- Error: Undefined variable: NAME E116: Invalid arguments for function edge#highlight HOT 3
- Most of the text is background-colored in lazygit via toggleterm HOT 5
- What font do the examples use? HOT 1
- NvimTree background color is not transparent as before HOT 1
- Any plans to migrate theme to Lua? HOT 1
- when LSP loaded, highlight become weird since neovim0.9 HOT 3
- Color Palette difference between `README.md` and `autoload/edge.vim` HOT 13
- How do I disable the dimming? HOT 1
- Suggestion/Request Helix editor theme. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edge.