chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.
MIT License
788 stars 40 forks source link

Option to disable highligthed line numbering #48

Open MikeOlsen opened 2 years ago

MikeOlsen commented 2 years ago

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
chentoast commented 2 years ago

You can disable this by redefining the MarkSignNumHL Highlight group.

alexmozaidze commented 8 months ago

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!