Skip to content

Commit

Permalink
Fixes up priories for extmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
dsummersl committed Apr 1, 2024
1 parent 2c8114c commit 432d504
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lua/sluice/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ local default_settings = {
window = {
count_method = '',
},
extmarks = {
}
},
-- {
-- plugins = { 'viewport',
Expand Down
7 changes: 5 additions & 2 deletions lua/sluice/integrations/extmarks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ function M.update(_settings, bufnr)
for _, mark in ipairs(extmarks) do
local row = mark[2]
local details = mark[4]
-- TODO currently only supports signs, but could be extended to support
-- other extmarks
if details['sign_hl_group'] ~= "" then
table.insert(result, {
lnum = row + 1,
text = details["sign_text"],
texthl = details["sign_hl_group"],
priority = 10,
plugin = 'search',
-- linehl = details["hl_group"],
priority = details["priority"],
plugin = 'extmarks',
})
end
end
Expand Down

0 comments on commit 432d504

Please sign in to comment.