preservim / vim-indent-guides

A Vim plugin for visually displaying indent levels in code
MIT License
2.62k stars 162 forks source link

[OSX][neovim] Weird behaviour with 'set cursorline' #111

Closed tostr7191 closed 8 years ago

tostr7191 commented 8 years ago

I really like to highlight the current line, but this plugin gives weird behaviour in this case:

screen shot 2016-03-22 at 13 45 38

There are two rectangles that are bg-colored, but should be cursorline-colored. Maybe disable your plugin for the current line if cursorline is set?

Settings:

let g:indent_guides_start_level=2
let g:indent_guides_guide_size=1
let g:indent_guides_enable_on_vim_startup=1

Thank you for a great plugin!

Cheers, t0str

nathanaelkane commented 8 years ago

I believe you can fix this by defining the following highlight:

hi IndentGuidesOdd ctermbg=NONE guibg=NONE

This clears the background colour on every 2nd guide, which is the guide that's overriding your cursorline.

tostr7191 commented 8 years ago

Thank you very much, issue solved :)