You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've temporarily fixed it with the following code.
diff --git a/lua/blink/cmp/completion/windows/menu.lua b/lua/blink/cmp/completion/windows/menu.lua
index 32af8d3..6cef7b0 100644
--- a/lua/blink/cmp/completion/windows/menu.lua+++ b/lua/blink/cmp/completion/windows/menu.lua@@ -109,7 +109,16 @@ function menu.update_position()
-- place the window at the start col of the current text we're fuzzy matching against
-- so the window doesnt move around as we type
local cursor_col = vim.api.nvim_win_get_cursor(0)[2]
+ local current_indent = vim.fn.indent(vim.fn.line('.'))+ local tabstop = vim.api.nvim_get_option("tabstop")
local col = context.bounds.start_col - cursor_col - (context.bounds.length == 0 and 0 or 1) - border_size.left
+ if current_indent == tabstop then+ col = context.bounds.start_col - cursor_col - border_size.left+ else+ end++
local row = pos.direction == 's' and 1 or -pos.height - border_size.vertical
vim.api.nvim_win_set_config(winnr, { relative = 'cursor', row = row, col = col - start_col })
vim.api.nvim_win_set_height(winnr, pos.height)
Relevant configuration
No response
neovim version
NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info
blink.cmp version: branch, tag, or commit
main
The text was updated successfully, but these errors were encountered:
Make sure you have done the following
blink.cmp
Bug Description
I've temporarily fixed it with the following code.
Relevant configuration
No response
neovim version
NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info
blink.cmp
version: branch, tag, or commitmain
The text was updated successfully, but these errors were encountered: