Skip to content

muryp/muryp-git.nvim

Repository files navigation

License: Apache Neovim version Lua version Repo Size Latest Release Last Commit Open Issues Linting and style checking

Plugin Nvim MuryP Git

This plugins for manage git in neovim. Like commit, push, PR ,etc.

requirement

if some plugins not found you can still used it, but you can use it

install

  • lazy.nvim
  {
    'muryp/muryp-git.nvim',
    config = function()
      --PATH SSH DIR
      _G.SSH_DIR = vim.fn.getenv 'HOME' .. '/.ssh/github'
      --PATH GIT DIR for cache
      _G.MURYP_GIT_DIR = vim.fn.getenv 'HOME' .. '/.muryp/nvim/git/'
      require 'muryp-git'
    end,
  }

configs

see example configs in here

Api

before use api you need to local git = require('muryp-git.api')

BRANCH

  • git.branch.create => CREATE
  • git.branch.renameCurr => RENAME_CURR
  • git.branch.renameList => RENAME_LIST
  • git.branch.rm => REMOVE

FLOW

  • git.flow { isRebase = true } => CHECKOUT AND REBASE
  • git.flow { isMerge = true } => CHECKOUT AND MERGE
  • git.flow { isSquash = true } => CHECKOUT AND SQUASH

COMMIT AND PUSH

  • git.commit { isAmend = true } => COMMIT
  • git.push { isUseSsh = true, isPull = true, isCommit = true, isAddAll = true, } => ADD,COMMIT,PUSH,PULL

PULL

isUseSsh => use ssh to pull, change to false if you not use it.

  • git.pull { isUseSsh = true, isSquash = true, } => PULL AND SQUASH
  • git.pull { isUseSsh = true, isRebase = true, } => PULL AND REBASE
  • git.pull { isUseSsh = true, isMerge = true, } => PULL AND MERGE

MERGE

  • git.merge => MERGE
  • git.squash => SQUASH
  • git.rebase => REBASE

REMOTE

  • git.remote.add => CREATE
  • git.remote.rename => RENAME
  • git.remote.rm => REMOVE
  • git.remote.sshToHttp => SSH_TO_HTTP
  • git.remote.httpToSsh => HTTP_TO_SSH
  • git.remote.open => OPEN IN BROWSER

Lisensi

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.

Contributing

We greatly appreciate contributions from anyone can produce issue or maintaine code to help this repo. Please read CONTRIBUTE.md for more info.

Releases

No releases published

Packages

No packages published