diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76cb5a2..67e7bb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,5 +20,6 @@ jobs: neovim-nightly dependencies: | plenary.nvim + telescope.nvim env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} diff --git a/.gitignore b/.gitignore index bb1284f..c7a2098 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/luarocks -/lua_modules -/.luarocks -/lua +luarocks +lua_modules +.luarocks diff --git a/README.md b/README.md index 6ffb1c3..f5e1221 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ use { 'kid-icarus/jira.nvim', requires = { 'nvim-lua/plenary.nvim', + 'nvim-telescope/telescope.nvim', } config = function () require'jira'.setup() -- see configuration section @@ -45,6 +46,7 @@ Using [lazygit.nvim](https://github.com/folke/lazy.nvim) 'kid-icarus/jira.nvim', dependencies = { 'nvim-lua/plenary.nvim', + 'nvim-telescope/telescope.nvim', }, opts = {}, -- see configuration section } @@ -81,3 +83,16 @@ There is only an Jira [arguments] command. | issue | view [issue_id] | View the given issue, if none provided it will attempt to extract one out of the current git branch (disabled via `use_git_branch_issue_id`), else falls back to a prompt | | | transition [issue_id] [transition_name] | Transition the ticket to a given status. Will attempt to extract issue ID from git branch, and will prompt if no options given +Additionally, the transition command has a Telescope picker. + +`:Telescope jira transitions` + +## Mappings + +There are no default mappings, but you can create your own. Here's an example: + +```lua +local t = require 'telescope' +vim.keymap.set('n', 'jt', 'Jira issue view', {}) +vim.keymap.set('n', 'jv', t.extensions.jira.transitions, {}) +``` diff --git a/jira.nvim-scm-1.rockspec b/jira.nvim-scm-1.rockspec index 86e505c..a8eb1b7 100644 --- a/jira.nvim-scm-1.rockspec +++ b/jira.nvim-scm-1.rockspec @@ -16,6 +16,7 @@ description = { dependencies = { 'lua >= 5.1, < 5.4', 'plenary.nvim', + 'telescope.nvim', } source = {