-
Notifications
You must be signed in to change notification settings - Fork 41
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
Diffview Doesn't Load correctly with Packer #94
Comments
arf I had not realized diffview was a new dependency so seems like the problem might be in initialization order ? diffview must be initialized before gitlab.nvim |
Hey Teto, thanks for reporting this. Yes, this is why for Packer and Lazy |
I think it's ok. Depending on how I launch neovim I see some errors like an highlight missing for gitlab.nvim but it's not a big problem. Let's close |
Thank you so much for this plugin! Just FWIW, I'm running into the same error:
I've actually tried deleting the previous installation of Here's what the config looks like in my packer.lua file:
I thought I could ignore it, but I also noticed that when I try to install with
Any idea what I could be doing incorrectly? |
This looks specifically like an issue with Packer, I'm not a user but would appreciate any help from the community... Looks like diffview expects there to be a global variable |
fix: We require some state from Packer, this fixes the docs to reflect a way to load that state prior to running the gitlab plugin. Fixes #94.
* feat: Support for custom authentication provider functions (#270) * feat: Support for adding "draft" notes to the review, and publishing them, either individually or all at once. Addresses feature request #223. * feat: Lets users select + checkout a merge request directly within Neovim, without exiting to the terminal * fix: Checks that the remote feature branch exists and is up-to-date before creating a MR, starting a review, or opening the MR summary (#278) * docs: We require some state from Diffview, this shows how to load that state prior to installing w/ Packer. Fixes #94. This is a #MINOR release. --------- Co-authored-by: Jakub F. Bortlík <[email protected]> Co-authored-by: sunfuze <[email protected]> Co-authored-by: Patrick Pichler <[email protected]>
For anyone else running into this issue, you have to require Diffview before you require Gitlab due to an issue in that repository and Packer: require("diffview") -- We require some global state from diffview
local gitlab = require("gitlab")
-- Your keybindings here... |
Prerequsities
Bug Description
In lua/gitlab/reviewer/diffview.lua there is a
local diffview_lib = require("diffview.lib")
line that triggersif you have https://github.com/sindrets/diffview.nvim installed as well aka
require("gitlab.diffview.lib")
instead.everything included should be scoped by the plugin name.
Reproduction Steps
install https://github.com/sindrets/diffview.nvim and gitlab.nvim
The text was updated successfully, but these errors were encountered: