From 9bd0c153014c20c78897967b90a2b0e03ad891b9 Mon Sep 17 00:00:00 2001 From: minco Date: Sun, 19 Oct 2025 12:10:23 +0900 Subject: [PATCH] fix: blink.cmp path resolution --- lua/plugins/blink-cmp.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/plugins/blink-cmp.lua b/lua/plugins/blink-cmp.lua index 752b845..fad4eb7 100644 --- a/lua/plugins/blink-cmp.lua +++ b/lua/plugins/blink-cmp.lua @@ -56,6 +56,20 @@ return { -- elsewhere in your config, without redefining it, due to `opts_extend` sources = { default = { 'lsp', 'path', 'snippets', 'buffer' }, + providers = { + path = { + module = 'blink.cmp.sources.path', + score_offset = 3, + fallbacks = { 'buffer' }, + opts = { + trailing_slash = true, + label_trailing_slash = true, + get_cwd = function(context) return vim.fn.expand(('#%d:p:h'):format(context.bufnr)) end, + show_hidden_files_by_default = true, + ignore_root_slash = true, + } + } + }, }, -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance