Skip to content

Commit 432d504

Browse files
committed
Fixes up priories for extmarks
1 parent 2c8114c commit 432d504

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lua/sluice/config.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ local default_settings = {
9595
window = {
9696
count_method = '',
9797
},
98+
extmarks = {
99+
}
98100
},
99101
-- {
100102
-- plugins = { 'viewport',

lua/sluice/integrations/extmarks.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ function M.update(_settings, bufnr)
1111
for _, mark in ipairs(extmarks) do
1212
local row = mark[2]
1313
local details = mark[4]
14+
-- TODO currently only supports signs, but could be extended to support
15+
-- other extmarks
1416
if details['sign_hl_group'] ~= "" then
1517
table.insert(result, {
1618
lnum = row + 1,
1719
text = details["sign_text"],
1820
texthl = details["sign_hl_group"],
19-
priority = 10,
20-
plugin = 'search',
21+
-- linehl = details["hl_group"],
22+
priority = details["priority"],
23+
plugin = 'extmarks',
2124
})
2225
end
2326
end

0 commit comments

Comments
 (0)