airblade / vim-gitgutter

A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
MIT License
8.34k stars 296 forks source link

cursorline highlighting doesn't work with gitgutter #882

Closed m-deg closed 5 months ago

m-deg commented 7 months ago

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
airblade commented 7 months ago

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.

airblade commented 7 months ago

Any updates?

airblade commented 5 months ago

Closing because it's gone quiet.