Skip to content

YouSame2/telescope-git-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

telescope-git-diff

A Telescope extension to quickly view and jump through all modified and untracked files in a git repository.

Installation

Install with your favorite package manager.

Optimal Installation (Lazy Loading)

Using lazy.nvim or similar, you can load the extension only when needed.

{
  "YouSame2/telescope-git-diff",
  lazy = true,
  cmd = "Telescope git_diff",
  keys = {
    {
      "<leader>fgd",
      function()
        require("telescope").extensions.git_diff.git_diff()
      end,
      desc = "Telescope Git Diff Hunks",
    },
  },
  config = function()
    require("telescope").load_extension("git_diff")
  end,
},

Usage

Then you can use the command:

:Telescope git_diff

Or use the keymap you configured (e.g., <leader>fgd in the lazy loading example).

About

Telescope extension to quickly view/jump through all modified and untracked files in a git repo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages