echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.45k stars 171 forks source link

[mini.git] Can I use :G instead of :Git #977

Closed haunt98 closed 2 weeks ago

haunt98 commented 2 weeks ago

Contributing guidelines

Module(s)

mini.git

Description

Thank for wonderful module. Just a little ask. Can I change to :G instead :Git when invoke git in mini.git ?

Because I use tpope/vim-fugitive for a long time and familiar with :G

echasnovski commented 2 weeks ago

There is no built-in way to change the command name (and most certainly won't be).

The best suggestion is to use general approaches at creating "aliases" for user commands. See this comment for more details.

haunt98 commented 1 week ago

Thank @echasnovski for your suggestion!