Skip to content

Neovim plugin written in lua for handling simple git tasks

License

Notifications You must be signed in to change notification settings

GustavEikaas/easy-git.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-git.nvim

Motivation

A simplification of common tasks that I repeat a lot during my workflow.

Work in progress 🚧🏗

I'm a sole believer in making things I would use myself. I will be actively using this plugin while coding for a while to let it develop based on actual needs. Feel free to test it out and make suggestions.

Setup

-- lazy.nvim

{
  "GustavEikaas/easy-git.nvim"
  dependencies = { 'nvim-telescope/telescope.nvim', },
  config = function()
    local git = require("easy-git")
    git.setup()

    -- Example commands that can be created
    vim.api.nvim_create_user_command('B', git.pick_branch, {})
    vim.api.nvim_create_user_command('GGRF', git.restore_current_file, {})
    vim.api.nvim_create_user_command("GGRM", git.reset_to_main, {})
    vim.api.nvim_create_user_command("GGR", git.reset_branch, {})
  end
}

Features

  • Branch picker
  • Discard changes in current buffer
  • Discard all changes in a branch
  • Discard all changes and return to main branch
  • Stash changes

About

Neovim plugin written in lua for handling simple git tasks

Resources

License

Security policy

Stars

Watchers

Forks

Languages