/telescope-hg.nvim

Telescope plugin for mercurial (hg) repo

Primary LanguageLuaMIT LicenseMIT

telescope-hg.nvim

This is an extension for telescope.nvim provides some mercurial operation. Couldn't find one so I made this to scratch my own itch.

telescope-hg plugin

Installation

Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'jackysee/telescope-hg.nvim'
lua require'telescope'.load_extension('hg')

Usage

files

:Telescope hg files show files managed by hg. Untracked files would be shown by defualt. Use :Telescope hg files show_untracked=false to disable it.

Mappings:

  • <cr> to select file

status

:Telescope hg status show changed files.

Mappings:

  • <cr> to select file

log

:Telescope hg log show rev history of entire repo

Mappings:

  • <cr> to checkout the revision

logthis

:Telescope hg logthis show rev history of current buffer

Mappings:

  • <cr> vertical diff rev to buffer
  • <c-r> revert to the revision

branches

:Telescope hg branches list repo named branches

Mappings:

  • <cr> checkout the target branch