mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
accept title_pos option if specified
This commit is contained in:
parent
8f67088e9d
commit
938c85d438
@ -92,6 +92,7 @@ function HarpoonUI:_create_window(toggle_opts)
|
|||||||
local win_id = vim.api.nvim_open_win(bufnr, true, {
|
local win_id = vim.api.nvim_open_win(bufnr, true, {
|
||||||
relative = "editor",
|
relative = "editor",
|
||||||
title = "Harpoon",
|
title = "Harpoon",
|
||||||
|
title_pos = toggle_opts.title_pos or "left",
|
||||||
row = math.floor(((vim.o.lines - height) / 2) - 1),
|
row = math.floor(((vim.o.lines - height) / 2) - 1),
|
||||||
col = math.floor((vim.o.columns - width) / 2),
|
col = math.floor((vim.o.columns - width) / 2),
|
||||||
width = width,
|
width = width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user