Command pallet of Git commands
# As a command
:Telescope gitcommand
# As a lua function
require('telescope').extensions.gitcommand.gitcommand()
- status
- branch
- repo log(repository Git log)
- file log(currentfile Git log)
- stash(stash list)
- commit
- commit --amend
- commit --amend --no-edit
- push
- push --force
- fetch
- pull
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
},
},
})