airblade / vim-gitgutter

A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cursorline highlighting doesn't work with gitgutter

m-deg opened this issue · comments

I have cursorline hightlight like below. Unfortunately, this highlighting breaks when i move cursor to lines that are changed.

  local enterNormal = function()
    vim.opt.cursorline = true
    vim.cmd("highlight CursorLine guibg=#7d352f guifg=fg") --
  end
  local enterInsert = function()
    vim.opt.cursorline = false
  end

I'm not sure what you mean by "this highlighting breaks" – please could you give some more details?

As an aside, I would move highlight CursorLine guibg=#7d352f guifg=fg out of your function and into your general config, after you set your colorscheme.

Any updates?

Closing because it's gone quiet.