chentoast/marks.nvim

Option to disable highligthed line numbering

MikeOlsen opened this issue · 2 comments

Hi,

I would like to disable the highlighting around the line numbers.
image

The highlighting appears with gruvbox colorscheme.

Neovim version:

NVIM v0.6.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

You can disable this by redefining the MarkSignNumHL Highlight group.

Here's a snippet that fixes the issue:

local group = vim.api.nvim_create_augroup("marks-fix-hl", {})
vim.api.nvim_create_autocmd({ "VimEnter" }, {
  group = group,
  callback = function()
    vim.api.nvim_set_hl(0, "MarkSignNumHL", {})
  end,
})

You can put it anywhere in your config and it'll remove the highlight group entirely. This also fixes an issue of MarkSignNumHL overriding CursorLineNr when the cursor is on the same line as the mark. I hope it helps!