A Neovim plugin integrating the open-source gh-dash TUI for the gh CLI (gh-dash)
- ✅ Toggle gh-dash floating window with
:GHdashToggle - ✅ Optional keymap mapping via
setupcall - ✅ Background running when window hidden
- ✅ Lualine integration via
require('gh_dash').status
- Install the 'gh' command line tool for your OS from GitHub CLI.
e.g. for macOS:
brew install gh- Install the
gh-dashTUI as a plugin from theghcommand - Alternatively, mark autoinstall as true in the config function
gh extension install dlvhdr/gh-dash- Use your plugin manager to install, e.g. lazy.nvim:
return {
'johnseth97/gh-dash.nvim',
lazy = true,
keys = {
{
'<leader>cc',
function() require('gh_dash').toggle() end,
desc = 'Toggle gh-dash popup',
},
},
opts = {
keymaps = {}, -- disable internal mapping
border = 'rounded', -- or 'double'
width = 0.8,
height = 0.8,
autoinstall = true,
},
}- If you are not using Lazy, I assume you can figure out how to clone the repo.
- Call
:GHdash(or:GHdashToggle) to open or close the gh-dash popup. -- Map your own keybindings via thekeymaps.togglesetting. - Add the following code to show presence of backgrounded gh-dash window in lualine:
require('gh-dash').status() -- drop in to your lualine sections