Skip to content

A telescope.nvim extension that makes it easy to list all the files modified on the current branch, i.e. "what will the pull request look like".

License

Notifications You must be signed in to change notification settings

frantisekstanko/telescope-git-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

telescope-git-diff

A telescope.nvim extension that makes it easy to list all the files modified on the current branch, i.e. "what will the pull request look like".

Screenshot

How to use

Minimal example for lazy.nvim:

return {
    "nvim-telescope/telescope.nvim",
    branch = "0.1.x",
    dependencies = {
        { "nvim-lua/plenary.nvim" },
        { "frantisekstanko/telescope-git-diff" },
    },
    config = function()
        local telescope = require("telescope")
        telescope.setup()
        telescope.load_extension("git_diff")
    end,
    keys = {
        {
            "<leader>m",
            function()
                local git_diff = require("telescope").extensions.git_diff
                git_diff.modified_on_current_branch()
            end,
            desc = "Show modified on current branch",
        },
    },
}

About

A telescope.nvim extension that makes it easy to list all the files modified on the current branch, i.e. "what will the pull request look like".

Resources

License

Stars

Watchers

Forks

Languages