easy use git, with telescope and wichkey.
- nvim 0.8+ (recommendation)
- lewis6991/gitsigns.nvim
- sindrets/diffview.nvim
- akinsho/git-conflict.nvim
- folke/which-key.nvim
- nvim-telescope/telescope.nvim
if some plugins not found you can still used it, but you can use it
- lazy.nvim
{
'muryp/muryp-git-setup.nvim',
}
-- disable maps
require('muryp-git-setup').useMaps = false
-- rewrite maps
require('muryp-git-setup').MAPS[1].t = {':cmdt<CR>','DESCRIPTIONt'}
require('muryp-git-setup').MAPS[1].g = { name = 'some description', h = { ':cmdg<CR>','DESCRIPTIONg'},}
require('muryp-git-setup').MAPS[2] = { prefix = "<leader>", noremap = true, mode = 'n', silent = true }
- git cmd main
M.gitMainCmd({
add = true, -- use git add . ? => boolean|nil
commit = true, -- use commit? => boolean|nil
ssh = true, -- use ssh? => boolean|nil
pull = true, -- use pull? => boolean|nil
pull_quest = true, -- ask use pull => boolean|nil
push = true, -- push => boolean|nil
remote_quest = true, -- custom remote => boolean|nil
remote = true, -- default remote => string
})
Telescope git_flow
: checkout and mergeTelescope git_pull
: pull request from remoteTelescope git_commit_ssh_push
: commit ssh push with option remote
The muryp-git-setup
plugin is distributed under the Apache License 2.0. Please refer to the LICENSE
file for more information about this license.
We greatly appreciate contributions from anyone can produce issue or maintaine code to help this repo. Please read CONTRIBUTE.md
for more info.