Skip to content

Commit 7d6b50b

Browse files
authored
fix: signature window no longer overlaps cursor (#149)
1 parent 63b7b22 commit 7d6b50b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/blink/cmp/windows/signature.lua

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ function signature.update_position(context)
111111
local is_space_below = cursor_screen_position.distance_from_bottom > height
112112
local is_space_above = cursor_screen_position.distance_from_top > height
113113

114+
-- fixes issue where the signature window would cover the cursor
115+
if is_space_above then direction = 'n' else direction = 's' end
116+
114117
-- default to the user's preference but attempt to use the other options
115118
local row = direction == 's' and 1 or -height
116119
vim.api.nvim_win_set_config(winnr, { relative = 'cursor', row = row, col = -1 })

0 commit comments

Comments
 (0)