Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Floating window and lualine integration for the popular gh-dash terminal UI

Notifications You must be signed in to change notification settings

johnseth97/gh-dash.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-dash.nvim

image

A Neovim plugin integrating the open-source gh-dash TUI for the gh CLI (gh-dash)

Latest version: GitHub tag (latest SemVer)

Features

  • ✅ Toggle gh-dash floating window with :GHdashToggle
  • ✅ Optional keymap mapping via setup call
  • ✅ Background running when window hidden
  • ✅ Lualine integration via require('gh_dash').status

Installation

  • Install the 'gh' command line tool for your OS from GitHub CLI.

e.g. for macOS:

brew install gh
  • Install the gh-dash TUI as a plugin from the gh command
  • 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.

Usage

  • Call :GHdash (or :GHdashToggle) to open or close the gh-dash popup. -- Map your own keybindings via the keymaps.toggle setting.
  • Add the following code to show presence of backgrounded gh-dash window in lualine:
require('gh-dash').status() -- drop in to your lualine sections

About

Floating window and lualine integration for the popular gh-dash terminal UI

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published