Skip to content

Telescope.nvim extension for command palette of git command

License

Notifications You must be signed in to change notification settings

Syu-fu/telescope-gitcommand.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

telescope-gitcommand.nvim

Command pallet of Git commands

Usage

# As a command
:Telescope gitcommand

# As a lua function
require('telescope').extensions.gitcommand.gitcommand()

Requirements

Command list

open telescope.nvim

  • status
  • branch
  • repo log(repository Git log)
  • file log(currentfile Git log)
  • stash(stash list)

use vim-fugitive

  • commit
  • commit --amend
  • commit --amend --no-edit
  • push
  • push --force
  • fetch
  • pull

Configuration

You can set commands not to be displayed

require('telescope').setup({
  -- Telescope settings
  extensions = {
    gitcommand = {
      ignore = { 'push', 'push --force', 'pull' }, -- Write the command name as it appears in the command palette
    },
  },
})

About

Telescope.nvim extension for command palette of git command

Resources

License

Stars

Watchers

Forks

Languages