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

Error after disabling helpview #17

Open
NStefan002 opened this issue Dec 9, 2024 · 0 comments
Open

Error after disabling helpview #17

NStefan002 opened this issue Dec 9, 2024 · 0 comments

Comments

@NStefan002
Copy link

When disabling helpview and then trying to open a new help buffer, I get the following error:

Error detected while processing BufWinEnter Autocommands for "<buffer=3>":
Error executing lua callback: ...2/.local/share/nvim/lazy/helpview.nvim/ftplugin/help.lua:43: attempt to index field 'options' (a nil value)
stack traceback:
        ...2/.local/share/nvim/lazy/helpview.nvim/ftplugin/help.lua:43: in function <...2/.local/share/nvim/lazy/helpview.nvim/ftplugin/help.lua:32>

I can reproduce it with this minimal config:

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"https://github.com/folke/lazy.nvim.git",
		"--branch=stable", -- latest stable release
		lazypath,
	})
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
	{
		"OXY2DEV/helpview.nvim",
		lazy = false,
		dependencies = {
			"nvim-treesitter/nvim-treesitter",
		},
	},
}, {})
  1. copy the above code into repro.lua
  2. run nvim -u repro.lua
  3. :h news
  4. :Helpview disableAll
  5. :h help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant