This is an extension for telescope.nvim provides some mercurial operation. Couldn't find one so I made this to scratch my own itch.
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'jackysee/telescope-hg.nvim'
lua require'telescope'.load_extension('hg')
: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
:Telescope hg status
show changed files.
Mappings:
<cr>
to select file
:Telescope hg log
show rev history of entire repo
Mappings:
<cr>
to checkout the revision
:Telescope hg logthis
show rev history of current buffer
Mappings:
<cr>
vertical diff rev to buffer<c-r>
revert to the revision
:Telescope hg branches
list repo named branches
Mappings:
<cr>
checkout the target branch