nvimdev / indentmini.nvim

A minimal and blazing fast indentline plugin
MIT License
171 stars 12 forks source link

Background color of selected extmarks #7

Closed sinotca529 closed 1 year ago

sinotca529 commented 1 year ago

Thanks for the elegant plugin.

I have a suggestion about bg color of selected extmarks. Currently, selected extmarks looks like the upper figure.

I think the bg color of extmarks should be changed when selected. To do so, I tried hl_mode = 'conbine':

  if #text == 0 and i - 1 > 0 then
    param = {
      virt_text = { { mini.char, hi_name } },
      virt_text_pos = 'overlay',
      virt_text_win_col = i - 1,
      ephemeral = true,
+      hl_mode = 'combine'
    }
  else
    param = {
      virt_text = { { mini.char, hi_name } },
      virt_text_pos = 'overlay',
      ephemeral = true,
+      hl_mode = 'combine'
    }
    col = i - 1
  end

With this change, the bg color changed like the lower figure. What do you think? image

sinotca529 commented 1 year ago

Sorry. The version I am using is old. This problem is fixed already.