Skip to content

Funk66/jira.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple Jira tools

image

Installation

LazyVim example configuration:

return {
  "Funk66/jira.nvim",
  dependencies = { "nvim-lua/plenary.nvim" },
  config = function()
    require("jira").setup()
  end,
  cond = function()
    return vim.env.JIRA_API_TOKEN ~= nil
  end,
  keys = {
    { "<leader>jv", ":JiraView<cr>", desc = "View Jira issue", silent = true },
    { "<leader>jo", ":JiraOpen<cr>", desc = "Open Jira issue in browser", silent = true },
  },
}

You can either provide your Jira credentials as environment variables

export JIRA_DOMAIN=myproject.atlassian.net
export JIRA_USER=godzilla@github.com
export JIRA_API_TOKEN=...
export JIRA_PROJECT_KEY=DEMO

or as options to the setup function.

require("jira").setup({
  domain = "myproject.atlassian.net",
  user = "godzilla@github.com",
  token = "...",
  key = "DEMO",
})

Usage

Place the cursor over a Jira issue id and press:

  • <leader>jv - View issue in a floating window
  • <leader>jo - Open issue in a browser

About

Jira plugin for Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages