Skip to content

Telescope extension for searching and opening git diffs

Notifications You must be signed in to change notification settings

leonnelc/git_diff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Telescope extension for searching and opening git diffs

What is this?

This is basically a wrapper for telescope bultin git_status with a custom select action.

It lets you browse git diffs of the current directory and open them in a new unmodifiable buffer.

Why did i do this?

Because the builtin git_status select action opens the file instead of the diff and i wanted a way to open diffs easily without making my config uglier by setting a custom selector for git_status

How to install

For lazy:

{"leonnelc/git_diff.nvim"}

and then load it with

require("telescope").load_extension("git_diff")

Usage

Use it like any other telescope picker

:Telescope git_diff

or calling the lua function

require("telescope").extensions.git_diff.git_diff()

About

Telescope extension for searching and opening git diffs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages