marks.nvim icon indicating copy to clipboard operation
marks.nvim copied to clipboard

Option to disable highligthed line numbering

Open MikeOlsen opened this issue 2 years ago • 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

MikeOlsen avatar Jan 02 '22 14:01 MikeOlsen

You can disable this by redefining the MarkSignNumHL Highlight group.

chentoast avatar Jan 04 '22 19:01 chentoast

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!

alexmozaidze avatar Oct 24 '23 23:10 alexmozaidze