From 7d6b50b140eadb51d1bf59b93a02293333a59519 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 22 Oct 2024 09:32:58 -0500 Subject: [PATCH] fix: signature window no longer overlaps cursor (#149) --- lua/blink/cmp/windows/signature.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/blink/cmp/windows/signature.lua b/lua/blink/cmp/windows/signature.lua index 121a0800..6f69a81a 100644 --- a/lua/blink/cmp/windows/signature.lua +++ b/lua/blink/cmp/windows/signature.lua @@ -111,6 +111,9 @@ function signature.update_position(context) local is_space_below = cursor_screen_position.distance_from_bottom > height local is_space_above = cursor_screen_position.distance_from_top > height + -- fixes issue where the signature window would cover the cursor + if is_space_above then direction = 'n' else direction = 's' end + -- default to the user's preference but attempt to use the other options local row = direction == 's' and 1 or -height vim.api.nvim_win_set_config(winnr, { relative = 'cursor', row = row, col = -1 })