Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ marks.nvim defines the following highlight groups:

`MarkSignNumHL` The highlight group for the number line in a signcolumn.

`MarkSignLineHL` The highlight group for the whole line the sign is placed in.
(The default is "NONE", so it will not be highlighted unless changed.)

`MarkVirtTextHL` The highlight group for bookmark virtual text annotations.

marks.nvim also defines the following commands:
Expand Down
8 changes: 6 additions & 2 deletions doc/marks-nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,12 @@ see |sign_define()|.
*MarkSignNumHL*
(defaults to |LineNr|)

The highlight group for the number line in a signcolumn: see
|sign_define()|.
The highlight group for the number line in a signcolumn.

*MarkSignLineHL*
(defaults to |NONE|)

The highlight group for the whole line the sign is placed in.

*MarkVirtTextHL*
(defaults to |Comment|)
Expand Down
2 changes: 1 addition & 1 deletion lua/marks/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function M.add_sign(bufnr, text, line, id, group, priority)
if not M.sign_cache[sign_name] then
M.sign_cache[sign_name] = true
vim.fn.sign_define(sign_name, { text = text, texthl = "MarkSignHL",
numhl = "MarkSignNumHL" })
numhl = "MarkSignNumHL", linehl = "MarkSignLineHL" })
end
vim.fn.sign_place(id, group, sign_name, bufnr, { lnum = line, priority = priority })
end
Expand Down
2 changes: 1 addition & 1 deletion plugin/marks.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ endif
let g:loaded_marks = 1

hi default link MarkSignHL Identifier
" hi default link MarkSignLineHL Normal
hi default link MarkSignLineHL NONE
hi default link MarkSignNumHL CursorLineNr
hi default link MarkVirtTextHL Comment

Expand Down