lewis6991 / lewis6991/hover.nvim

jira-cli setup and working, but receiving error when using hover.providers.jira

Open
#95 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
744
Forks
58
PR merge metrics
No merged PRs in 30d

Description

return {
	"lewis6991/hover.nvim",
	config = function()
		require("hover").setup({
			init = function()
				-- Require providers
				require("hover.providers.lsp")
				-- require('hover.providers.gh')
				-- require('hover.providers.gh_user')
				require("hover.providers.jira")
				-- require('hover.providers.dap')
				-- require('hover.providers.fold_preview')
				-- require('hover.providers.diagnostic')
				-- require('hover.providers.man')
				-- require('hover.providers.dictionary')
				-- require('hover.providers.highlight')
			end,
			preview_opts = {
				border = "single",
			},
			-- Whether the contents of a currently open hover window should be moved
			-- to a :h preview-window when pressing the hover keymap.
			preview_window = false,
			title = true,
			mouse_providers = {
				"LSP",
			},
			mouse_delay = 1000,
		})

		-- Setup keymaps
		vim.keymap.set("n", "K", require("hover").hover, { desc = "hover.nvim" })
		vim.keymap.set("n", "gK", require("hover").hover_select, { desc = "hover.nvim (select)" })
		vim.keymap.set("n", "<C-p>", function()
			require("hover").hover_switch("previous")
		end, { desc = "hover.nvim (previous source)" })
		vim.keymap.set("n", "<C-n>", function()
			require("hover").hover_switch("next")
		end, { desc = "hover.nvim (next source)" })

		-- Mouse support
		vim.keymap.set("n", "<MouseMove>", require("hover").hover_mouse, { desc = "hover.nvim (mouse)" })
		vim.o.mousemoveevent = true
	end,
}

I have jira-cli installed and working, but when pressing Shift-k on for example ISO-1432 I receive the following error:

Error executing callback:                                                                                                              
.../nvim-macos/lazy/hover.nvim/lua/hover/providers/jira.lua:14: attempt to compare number with boolean                                 
stack traceback:                                                                                                                       
        .../nvim-macos/lazy/hover.nvim/lua/hover/providers/jira.lua:14: in function 'on_exit'                                          
        ...lar/neovim/0.11.2/share/nvim/runtime/lua/vim/_system.lua:315: in function <...lar/neovim/0.11.2/share/nvim/runtime/lua/vim/_
system.lua:285> 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lua/hover/providers/jira.lua at line 14, then reproduce the error by invoking the Jira provider for ISO-1432 through the shown hover.nvim setup. Inspect the jira-cli callback values and verify that the provider completes without the reported type-comparison error and displays the Jira result.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.