mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-13 12:33:44 +02:00
`fzf --nushell` concatenates key-bindings.nu and completion.nu, both
of which defined `__fzf_defaults`, causing the resulting autoload file
to fail parsing:
Error: nu::parser::duplicate_command_def
x Duplicate command definition within a block.
,-[/Users/jg/.config/nushell/autoload/_fzf_integration.nu:211:5]
210 | # Helper to build default fzf options list
211 | def __fzf_defaults [prepend: string, append: string]: nothing -> string {
: ------+------
: `-- defined more than once
212 | let base = $"--height ($env.FZF_TMUX_HEIGHT? | default '40%') ...
`----
Rename the completion.nu copy to `__fzf_defaults_completion`.
|
||
|---|---|---|
| .. | ||
| common.sh | ||
| completion-examples.nu | ||
| completion.bash | ||
| completion.fish | ||
| completion.nu | ||
| completion.zsh | ||
| key-bindings.bash | ||
| key-bindings.fish | ||
| key-bindings.nu | ||
| key-bindings.zsh | ||
| update.sh | ||