mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 10:00:29 +00:00
Merge pull request #356 from trimclain/fix-highlight-groups
feat: update highlight groups
This commit is contained in:
commit
c5f2d71c32
@ -72,6 +72,8 @@ function HarpoonUI:_create_window()
|
|||||||
local _, popup_info = popup.create(bufnr, {
|
local _, popup_info = popup.create(bufnr, {
|
||||||
title = "Harpoon",
|
title = "Harpoon",
|
||||||
highlight = "HarpoonWindow",
|
highlight = "HarpoonWindow",
|
||||||
|
borderhighlight = "HarpoonBorder",
|
||||||
|
titlehighlight = "HarpoonTitle",
|
||||||
line = math.floor(((vim.o.lines - height) / 2) - 1),
|
line = math.floor(((vim.o.lines - height) / 2) - 1),
|
||||||
col = math.floor((vim.o.columns - width) / 2),
|
col = math.floor((vim.o.columns - width) / 2),
|
||||||
minwidth = width,
|
minwidth = width,
|
||||||
@ -85,7 +87,6 @@ function HarpoonUI:_create_window()
|
|||||||
self.win_id = win_id
|
self.win_id = win_id
|
||||||
self.border_win_id = popup_info.border.win_id
|
self.border_win_id = popup_info.border.win_id
|
||||||
vim.api.nvim_win_set_option(win_id, "number", true)
|
vim.api.nvim_win_set_option(win_id, "number", true)
|
||||||
vim.api.nvim_win_set_option(win_id, "winhl", "Normal:HarpoonBorder")
|
|
||||||
|
|
||||||
return win_id, bufnr
|
return win_id, bufnr
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user