Skip to content

Commit fc9632d

Browse files
author
Bassam Data
committed
chor(selecta): change the highlight name
1 parent 6f1d56d commit fc9632d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/namu/selecta/selecta.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,15 @@ local function setup_highlights()
276276
SelectaPrompt = { link = "FloatTitle" },
277277
SelectaSelected = { link = "Statement" },
278278
SelectaFooter = { link = "Comment" },
279-
-- SelectaCurrentLine = { link = M.config.current_highlight.hl_group },
279+
-- NamuCurrentLine = { link = M.config.current_highlight.hl_group },
280280
}
281281

282282
-- NOTE: for some wierd reason, this is the only way those 2 highlight groups works
283283
local current_hl_group = M.config.current_highlight.hl_group
284284
vim.cmd(string.format(
285285
[[
286286
highlight default link SelectaFilter Type
287-
highlight default link SelectaCurrentLine %s
287+
highlight default link NamuCurrentLine %s
288288
]],
289289
current_hl_group
290290
))
@@ -760,14 +760,14 @@ local function update_current_highlight(state, opts, line_nr)
760760
end_row = line_nr + 1,
761761
end_col = 0,
762762
hl_eol = true,
763-
hl_group = "SelectaCurrentLine",
763+
hl_group = "NamuCurrentLine",
764764
priority = 201, -- Higher than regular highlights but lower than matches
765765
})
766766

767767
-- Add the prefix icon if enabled
768768
if M.config.current_highlight.enabled and #M.config.current_highlight.prefix_icon > 0 then
769769
vim.api.nvim_buf_set_extmark(state.buf, current_selection_ns, line_nr, 0, {
770-
virt_text = { { M.config.current_highlight.prefix_icon, "SelectaCurrentLine" } },
770+
virt_text = { { M.config.current_highlight.prefix_icon, "NamuCurrentLine" } },
771771
virt_text_pos = "overlay",
772772
priority = 100, -- Higher priority than the line highlight
773773
})

0 commit comments

Comments
 (0)