Open lewisdiamond opened 3 months ago
Is diffview.lib is require()d without having imported diffview.bootstrap first, diffview crashes attempting to index a nil value.
diffview.lib
require()
diffview.bootstrap
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
diffview/lib.lua:12: attempt to index global 'DiffviewGlobal' (a nil value)
require("bootstrap.lib")
:checkhealth diffview
:DiffviewLog
nvim 0.9.5
Linux
n/a
Description
Is
diffview.lib
isrequire()
d without having importeddiffview.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
require("bootstrap.lib")
Health check
Output of
``` ####################### ### PUT OUTPUT HERE ### ####################### ```:checkhealth diffview
Log info
Relevant info from
``` ############################ ### PUT LOG CONTENT HERE ### ############################ ```:DiffviewLog
Neovim version
Operating system and version
Linux
Minimal config
n/a