Skip to content

Insert prefix to commit message by branch name (JIRA ticket for example)

License

Notifications You must be signed in to change notification settings

ofirgall/commit-prefix.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commit-prefix.nvim

Insert prefix to commit message by branch name (JIRA ticket for example) TODO: insert demo TODO: why not git hook

Installation

use 'ofirgall/commit-prefix.nvim'

Usage

-- Leave empty for default values
require('commit-prefix').setup {
    prefix_match = '%w+-%d+', -- JIRA ticket (PRJ-1234), for more info about matching: https://www.lua.org/pil/20.2.html
    enter_insert_mode = true, -- Enter insert mode
}

About

Insert prefix to commit message by branch name (JIRA ticket for example)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published