Skip to content
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

[Bug] DiffviewGlobal is nil #511

Open
lewisdiamond opened this issue Jun 11, 2024 · 0 comments
Open

[Bug] DiffviewGlobal is nil #511

lewisdiamond opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lewisdiamond
Copy link

lewisdiamond commented Jun 11, 2024

Description

Is diffview.lib is require()d without having imported diffview.bootstrap first, diffview crashes attempting to index a nil value.

Expected behavior

requiring bootstrap should not be necessary for using lib. For example: https://github.com/harrisoncramer/gitlab.nvim/blob/96d7e16ef7b26e42fdf813fd32f39d096aed33e1/lua/gitlab/reviewer/init.lua#L12

Actual behavior

diffview/lib.lua:12: attempt to index global 'DiffviewGlobal' (a nil value)

Steps to reproduce

  1. require("bootstrap.lib")

Health check

Output of :checkhealth diffview
#######################
### PUT OUTPUT HERE ###
#######################

Log info

Relevant info from :DiffviewLog
############################
### PUT LOG CONTENT HERE ###
############################

Neovim version

nvim 0.9.5

Operating system and version

Linux

Minimal config

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant