Skip to content

Commit 0c13fbd

Browse files
authored
feat: align completion window (#235)
closes #221
1 parent 6b46164 commit 0c13fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/windows/autocomplete.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function autocomplete.update_position(context)
196196
local cursor_col = vim.api.nvim_win_get_cursor(0)[2]
197197
local col = context.bounds.start_col - cursor_col - (context.bounds.length == 0 and 0 or 1)
198198
local row = pos.direction == 's' and 1 or -pos.height - border_size.vertical
199-
vim.api.nvim_win_set_config(winnr, { relative = 'cursor', row = row, col = col })
199+
vim.api.nvim_win_set_config(winnr, { relative = 'cursor', row = row, col = col - 1 })
200200
vim.api.nvim_win_set_height(winnr, pos.height)
201201

202202
for _, callback in ipairs(autocomplete.event_targets.on_position_update) do

0 commit comments

Comments
 (0)