8000 GitHub - robertgzr/gitgraph.nvim: Git Graph plugin for neovim
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

robertgzr/gitgraph.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitgraph.nvim

Git Graph plugin for neovim.

NOTE: this project is still very WIP and there is no help documentation aside from this README.md.

Screenshots

image

image

Goals

  • 100% lua
  • temporal topological order
  • branches stick to their lane
  • easy to follow branch crossings
  • easy to spot merge commits and branch children
  • compatible with sindrets.diffview
  • easily configurable date formats
  • easily configurable highlight groups

Usage

Note that this is still very early days and things may rapidly change in the beginning

  {
    'isakbm/gitgraph.nvim',
    dependencies = { 'sindrets/diffview.nvim' },
    ---@type I.GGConfig
    opts = {
      symbols = {
        merge_commit = 'M',
        commit = '*',
      },
      format = {
        timestamp = '%H:%M:%S %d-%m-%Y',
        fields = { 'hash', 'timestamp', 'author', 'branch_name', 'tag' },
      },
    },
    init = function()
      vim.keymap.set('n', '<leader>gl', function()
        require('gitgraph').draw({}, { all = true, max_count = 5000 })
      end, { desc = 'new git graph' })
    end,
  },

Keymaps

When in the git graph buffer you can open diffview on the commit under the cursor with Enter.

... moreke ymaps to come ...

Highlights Groups

commit information

  • 'GitGraphHash'
  • 'GitGraphTimestamp'
  • 'GitGraphAuthor'
  • 'GitGraphBranchName'
  • 'GitGraphBranchTag'
  • 'GitGraphBranchMsg'

branch colors

  • 'GitGraphBranch1'
  • 'GitGraphBranch2'
  • 'GitGraphBranch3'
  • 'GitGraphBranch4'
  • 'GitGraphBranch5'

About

Git Graph plugin for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%
0