Closed OmegaLambda1998 closed 2 weeks ago
Note that I use the blink.compat plugin to (experimentally) allow nvim-cmp sources to be used with blink
That’s probably the issue, the compact mode doesn’t include cmp.config
.
https://github.com/ibhagwan/fzf-lua/commit/9503aff787bfb278ab7b067a426187f97babc209, should fix this issue.
Yup, that worked, well done!
RTFM Checklist
man fzf
/ I am well versed in shell fzfOperating system
Linux
Shell
zsh
Neovim version (
nvim --version
)NVIM v0.10.2 --- Build type: RelWithDebInfo --- LuaJIT 2.1.1727870382
Fzf version (
fzf --version
)0.55.0 (fc693080)
Output of
:lua print(os.getenv('FZF_DEFAULT_OPTS'))
nil
Is the problem reproducible with
mini.sh
?mini.sh
mini.sh
mini.sh
(not relevant, requires LSP, Windows, etc)Fzf-lua configuration
Describe the bug / steps to reproduce
When fzf-lua cmdline completion is attempted before loading blink, everything is fine. The first time cmdline completion is attempted after loading blink, I get the following error:
Note that I use the blink.compat plugin to (experimentally) allow nvim-cmp sources to be used with blink, which I believe is why the
local ok, cmp = pcall(require, "cmp")
check passes butlocal cmdline_cfg = require("cmp.config").cmdline
fails.Every cmdline completion after the first doesn't error, nor are there any issues with blink or fzf-lua following the first attempt. I think just having a
pcall
around thecmdline_cfg
is gonna be a quick fix until blink officially adds cmdline completion functionality.