-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.md-E
64 lines (51 loc) · 1.58 KB
/
readme.md-E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<h1 align="center">✨commitment.nvim✨</h1>
We all know often commits are good. But we forget to do them.
Meet commitment.nvim, a plugin that helps you always remember to commit.
## Features
- Operates on either number of saves or time interval
- When reached writes limit or a timeout, shows a reminder
- Prevent useless commit messages by using a list of the common generic
uninformative commit messages
- Hardcore mode: Prevents writes to file until changes are committed. It will
react to either of the restrictions above.
## Installation
Install with your favorite plugin manager.
### Lazy
```lua
{
"nick-skriabin/commitment.nvim",
opts = {}
}
```
### Packer
```lua
use {
"nick-skriabin/commitment.nvim",
config = function()
require("commitment").setup()
end,
}
```
### Vim-Plug
```vim
Plug 'whaledev/commitment.nvim'
```
### Default config
```lua
require("commitment").setup({
-- Regular message. Shown when writes limit is reached or timer fired.
message = "Don't forget to git commit!",
-- Message shown when writes are prevented.
message_write_prevent = "You shall not write!",
-- Message shown when useless commit message is detected.
message_useless_commit = "That's not a very useless commit message, mind rephrasing it?",
-- Prevents writes to file until changes are committed.
stop_on_write = false,
-- Prevent writes to file when useless commit message is detected.
stop_on_useless_commit = false,
-- Number of writes before asking to commit.
writes_number = 30,
-- Interval in minutes to check git tree for changes.
check_interval = -1,
})
```