Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.16 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.16 KB

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