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
[RFC] neovim: remove alternatives. #36165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the given reasons warrant the removal of alternatives, its a choice the user can take.
If we have bash as sh and vim as vi, plocate as locate we can have neovim as vim.
If Neovim can be Vim, Bash can be Dash. # Template file for 'dash'
alternatives="
sh:sh:/usr/bin/dash
sh:sh.1:/usr/share/man/man1/dash.1"
# Template file for 'bash'
alternatives="
sh:sh:/usr/bin/bash
sh:sh.1:/usr/share/man/man1/bash.1"
# Template file for 'neovim'
alternatives="
vi:vi:/usr/bin/nvim
vi:vi.1:/usr/share/man/man1/nvim.1 The above would be logically consistent. |
Making dash bash breaks all scripts with bash shebang, installing nvim before vim makes it the default provider for the vim alternative group which you can easily fix with xbps-alternatives, avoid by installing vim first (instead of alphabetically sorting xbps-install arguments or by just not installing nvim. It also doesn't break half the system, all it does is make the cursor werid on your system. There would be no point in alternatives, if the requirement would be that they are 100% compatible, some things have stricter requirements than others, like shells, while other more interactive programs don't. |
That’s fair, but what if we just did away with the symlink to It violates user expectation for IIRC, Void isn’t the only distro which symlinks |
I already explained in #36164 (comment) why this is not without a problem. Having vim point to nvim can only happen in specific circumstances:
And as we already discussed, it doesn't matter to regular users. neovim and vim are basically drop in replacements of each other. |
I think this is wrong. 👍 for closing. |
I agree with @Vaelatern and because there 3 team members agree on this, I am closing this PR. |
Closes #36164
Testing the changes