Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
feat(nvim): <leader>ghi to list issues
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 22, 2022
1 parent 34aa817 commit d4b2088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions nvim/config/lua/user/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ packer.startup(function(use)
highlights = require("catppuccin.groups.integrations.bufferline").get(),
options = {
diagnostics = "nvim_lsp",
close_command = "Sayonara!",
right_mouse_command = "Sayonara!",
},
})
end,
Expand Down Expand Up @@ -143,6 +141,7 @@ packer.startup(function(use)
end,
requires = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-github.nvim",
},
})

Expand Down
3 changes: 3 additions & 0 deletions nvim/config/lua/user/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ telescope.setup({
},
})

telescope.load_extension("gh")

local opts = { noremap = true, silent = true }
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-p>", function()
Expand All @@ -33,3 +35,4 @@ vim.keymap.set("n", "<leader>fr", builtin.resume, opts)
vim.keymap.set("n", "<leader>fq", builtin.quickfix, opts)
vim.keymap.set("n", "<leader>/", builtin.current_buffer_fuzzy_find, opts)
vim.keymap.set("n", "<leader>xx", builtin.diagnostics, opts)
vim.keymap.set("n", "<leader>ghi", telescope.extensions.gh.issues, opts)

0 comments on commit d4b2088

Please sign in to comment.