New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fzf: install fzf.vim to Neovim plugin directory #21733
Conversation
True, this creates not needed files for vim users though. Not sure how to solve this. |
You don't have to copy vimfiles around, just add |
If I only use FZF without Vim, it'll create the files anyway... this way at least it's consistent. Also, Neovim reads This is more a design issue with FZF... we have to install those files, what if I want to install Vim/Neovim after I have already installed FZF, I won't have the file instaled... |
478839d
to
44f44e6
Compare
This PR is important for Neovim users that have FZF installed via XBPS. Vim support already existed and the files for it were installed regardless whether the user was a Vim user, so I just added support for Neovim. Unfortunately the flaw lies within FZF itself, since it is also home for the Vim plugin, when actually the plugin should be in a separate repository. |
44f44e6
to
baa6767
Compare
You still have 4 unrelated commits in this PR. Also, anyone not wanting to have neovim files can just |
Lol, sorry, just messed up the branch with my custom repository. Gonna fix that. |
baa6767
to
bd246e8
Compare
bd246e8
to
33d5c85
Compare
Squash the commits ;) |
For Vim users, FZF works out of the box, but Neovim users have to manually copy /usr/share/vim/vimfiles/plugin/fzf.vim to the proper Neovim equivalent. fzf: move completion functionality to correct path `shell/completion.bash` is not argument completion, it's a completion functionality for FZF (integration with `kill`, etc). Like the one for ZSH, it should go to `/usr/share/doc/fzf`.
33d5c85
to
71932df
Compare
I have squashed the commits, however CI is timing out. 😖 |
Ask neovim's developers to read those files by default? |
Is this possible? I think certain vim plugins might not be compatible with neovim. |
Honestly, I don't know. |
I agree with @sgn. We have a number of packages that install various vim plugins and making two copies of the same plugin file to appease another editor seems foolish. We install the vim plugin because upstream provides a vim plugin. If you're not using vim, manage the mapping manually. You can even |
Vim plugins "taking up space" isn't the issue, it's not having neovim ones. We are already treating the vim plugin specially, by installing it manually in the template. By https://github.com/junegunn/fzf/blob/master/README-VIM.md#fzf-inside-terminal-buffer,
|
The same applies for Neovim files then. Using Neovim is big enough to be taken into account. FZF on Arch Linux works out of the box with Neovim because files get installed for it too. |
Hey, my fork of Anyway, my fork of Void Linux works out of the box, too, but it's heavily customised, so I couldn't merge it into void-packages. This comment is a joke ;) |
I don't really see a reason to make fun of my concern. I'm even spending my work time patching this in order to make FZF installation a better experience for others that won't probably have time or expertise patching this same issue. I still use my own patch for it, so for me particularly it's fine, my intention here is to help others only. |
Let's chill my friends :-p |
Yes, it is unfortunate that VIM alternatives don't deal with plugins installed for the others. As it stands, I feel comfortable shipping this, |
I think this discussion is relevant to the pr I opened earlier today. Should I re-open it or keep it closed? |
As a user of both Void and Neovim, my opinion is to reopen and have it merged. |
For Vim users, FZF works out of the box, but Neovim users have to
manually copy /usr/share/vim/vimfiles/plugin/fzf.vim to the proper
Neovim equivalent.