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
Change owner of and update vimPlugins.nerdtree-git-plugin: init at 2020-09-11 #97985
Change owner of and update vimPlugins.nerdtree-git-plugin: init at 2020-09-11 #97985
Conversation
The update commit is nice to have as vim plugins should be "as up to date as possible", but the diff looks fine |
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.
@johringer So next time I would keep all the updates of all Vim plugins? As |
yea, essentially the vim "add new plugins" section applies to new plugin additions https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/vim.section.md#adding-new-plugins-to-nixpkgs |
Hi @jonringer , as @unclechu mentioned, nerdtree-git-plugin version released with nixos-20.09 is incompatible with the version of the main plugin, nerdtree. Shouldn't this change be backported to 20.09 to fix the issue? |
@ilkecan Why do you think it’s incompatible? Works for me: nix-shell -E '(import <nixpkgs> {}).mkShell {buildInputs=[(import nix/apps/neovim.nix {})];}' --run nvim |
Hi @unclechu , I am a nix newbie, so I might have misunderstood things. I am using the release-20.09 channel and it is still using the albfan fork. As you said in your initial post, it is very out of date and incompatible with the 'nerdtree' plugin in the same channel. I think this merge should fix the problem for the unstable channel, but the issue still persists for the 20.09 stable. I was wondering, shouldn't we also apply this changes to the 'release-20.09' branch, to fix the issue in the latest stable channel. Because I would expect the packages in a stable channel to be compatible with each other. |
@ilkecan Ah, you’re actually right. I just forgot I have my own override: |
@jonringer Any ideas when can this get to the stable release? |
https://github.com/albfan/nerdtree-git-plugin is an outdated (last commit was made more than year an a half ago) fork of the original plugin https://github.com/Xuyuanp/nerdtree-git-plugin (last commit on 11 September 2020).
In the
nixos-20.09
release thevimPlugins.nerdtree
doesn’t work with thevimPlugins.nerdtree-git-plugin
failing with this error:When you try to call
:NERDTree
.This merge request fixes this bug. Or probably not a bug but just an incompatibility with newer NERDTree.
I called
./update --add Xuyuanp/nerdtree-git-plugin
but it does a lot of extra commits I didn’t want for this small patch. So I rolled back tomaster
and cherry-picked only the last commit. After that I had to manually remove the old one since./update.py
doesn’t do this. And I committed the deletion with--amend
.Tested it by this command:
against my Neovim config: unclechu/neovimrc@2c40e11 where
~/dev/nix/nixpkgs
is: