From 938c85d4380061958bbae50e0b678a1164b13ca9 Mon Sep 17 00:00:00 2001 From: Kei Tsuji Date: Thu, 14 Dec 2023 12:10:39 +0900 Subject: [PATCH] accept title_pos option if specified --- lua/harpoon/ui.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/harpoon/ui.lua b/lua/harpoon/ui.lua index e412b4c..27b32a7 100644 --- a/lua/harpoon/ui.lua +++ b/lua/harpoon/ui.lua @@ -92,6 +92,7 @@ function HarpoonUI:_create_window(toggle_opts) local win_id = vim.api.nvim_open_win(bufnr, true, { relative = "editor", title = "Harpoon", + title_pos = toggle_opts.title_pos or "left", row = math.floor(((vim.o.lines - height) / 2) - 1), col = math.floor((vim.o.columns - width) / 2), width = width,