Skip to content

melMass/icommit.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

icommit.nvim

Plugin for neovim for "interactive commits".
By default it uses a custom flavor of conventional commits (check the config commit_types)

icommit_steps

Note: If an error occured on commit the last commit is stored (for the current session) and on restore you will be asked what to do with it:

icommit_restore

Installation

  • Lazy:
require('lazy').setup({
    {
        'melmass/icommit.nvim', 
        opts = {}, 
        dependencies = {
          'MunifTanjim/nui.nvim',
        }
    }
)

Configuration

This is the default config:

{
    command_name = "Icommit",
    -- check for staged file at each run.
    -- This is quite slow and the reason for the restore system.
    check_staged = false,

    -- If you completely want to override the commit_types set this to true
    -- otherwise commit_types you provide are merged to the defaults
    skip_core_types = false,

    commit_types = {
        feat = "",
        fix = "🐛",
        ci = "🤖",
        docs = "📚",
        style = "💎",
        refactor = "📦",
        test = "🚨",
        tag = "🔖",
        chore = "🧹",
        revert = "",
        perf = "🚀",
        wip = "🚧",
        release = "📦",
    },

    -- Default keymaps to select, close or submit a pane
    keymap = {
        focus_next = { "j", "<Down>", "<Tab>" },
        focus_prev = { "k", "<Up>", "<S-Tab>" },
        close = { "<Esc>", "<C-c>" },
        submit = { "<CR>" },
    },
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages