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
diff --git a/lua/blink/cmp/sources/path/lib.lua b/lua/blink/cmp/sources/path/lib.lua
index a54c257..8f5f0da 100644
--- a/lua/blink/cmp/sources/path/lib.lua+++ b/lua/blink/cmp/sources/path/lib.lua@@ -40,6 +40,10 @@ function lib.dirname(path_regex, get_cwd, context)
accept = accept and (not prefix:match('^[%s/]*$') or not lib.is_slash_comment())
if accept then return vim.fn.resolve('/' .. dirname) end
end
+ local driver = prefix:match('(%a:)[/\\]$')+ if driver then+ return vim.fn.resolve(driver .. '/' .. dirname)+ end
return nil
end
Make sure you have done the following
blink.cmp
Bug Description
In Windows, path completion doesn't work when a path starts with a drive letter, e.g.
C:/
.To reproduce:
C:/
and see that no path completion sources are shown.Note: behaviour is the same if
C:\
is used instead.Using
nvim-cmp
with cmp-async-path works correctly as shown belowAnd this is blink:
Relevant configuration
neovim version
NVIM v0.10.2
blink.cmp
version: branch, tag, or commitv0.76
The text was updated successfully, but these errors were encountered: