Skip to content

Diffview Doesn't Load correctly with Packer #94

@teto

Description

@teto

Prerequsities

  • The "Troubleshooting" section of the README did not help
  • I've installed the required dependencies
  • I'm on the latest version of the plugin

Bug Description

In lua/gitlab/reviewer/diffview.lua there is a local diffview_lib = require("diffview.lib") line that triggers

|| ...ck/home-manager/start/diffview.nvim/lua/diffview/lib.lua:12: attempt to index global 'DiffviewGlobal' (a nil value)
|| # stacktrace:
||   - ~/.local/share/nvim/site/pack/home-manager/start/diffview.nvim/lua/diffview/lib.lua:12
||   - /gitlab.nvim/lua/gitlab/reviewer/diffview.lua:5
||   - /gitlab.nvim/lua/gitlab/reviewer/init.lua:2
||   - /gitlab.nvim/lua/gitlab/init.lua:5
||   - ~/.config/nvim/lua/lazyplugins/git.lua:10 _in_ **config**
||   - ~/.config/nvim/lua/init-manual.lua:60
||   - ~/home/config/nvim/init.lua:12

if 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions