airblade/vim-gitgutter

cursorline highlighting doesn't work with gitgutter

Closed this issue · 3 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.