Skip to content

Commit 1846a06

Browse files
committed
add local history comment, change default history dir
1 parent 4e09d8d commit 1846a06

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

gitignore_global

+3
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@
3232
Icon?
3333
ehthumbs.db
3434
Thumbs.db
35+
36+
# nvim
37+
.local_history/

nvim/lua/user/conf/vim-local-history.lua

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
vim.cmd([[
2+
let g:local_history_enabled=1 "0: Never (Disable local history plugin),1: Always (Save also a single file which is not in the workspace folder)2: Workspace (Save only files within workspace folder)
3+
let g:local_history_path="./.local_history"
24
let g:local_history_width=30
35
let g:local_history_new_change_delay=300 "5min
46
let g:local_history_mappings = {
5-
\ "move_older": ["j"],
6-
\ "move_newer": ["k"],
7-
\ "move_oldest": ["G"],
8-
\ "move_newest": ["gg"],
9-
\ "revert": ["Enter"],
10-
\ "diff": ["d"],
11-
\ "delete": ["D"],
12-
\ "quit": ["q", "Q"],
13-
\ }
7+
\ "move_older": ["j"],
8+
\ "move_newer": ["k"],
9+
\ "move_oldest": ["G"],
10+
\ "move_newest": ["gg"],
11+
\ "revert": ["Enter"],
12+
\ "diff": ["d"],
13+
\ "delete": ["D"],
14+
\ "quit": ["q", "Q"],
15+
\ }
1416
]])
1517

1618
-- move_older Navigate to older change j

0 commit comments

Comments
 (0)