@@ -6,17 +6,16 @@ return {
66 local bm = require ' bookmarks'
77 local map = vim .keymap .set
88 local telescope = require ' telescope'
9- map (' n' , ' mm' , bm .bookmark_toggle ) -- add or remove bookmark at current line
10- map (' n' , ' mi' , bm .bookmark_ann ) -- add or edit mark annotation at current line
11- map (' n' , ' mc' , bm .bookmark_clean ) -- clean all marks in local buffer
12- map (' n' , ' mn' , bm .bookmark_next ) -- jump to next mark in local buffer
13- map (' n' , ' mp' , bm .bookmark_prev ) -- jump to previous mark in local buffer
9+ map (' n' , ' <leader> mm' , bm .bookmark_toggle , { desc = ' Toggle bookmark ' } ) -- add or remove bookmark at current line
10+ map (' n' , ' <leader> mi' , bm .bookmark_ann , { desc = ' Annotate bookmark ' } ) -- add or edit mark annotation at current line
11+ map (' n' , ' <leader> mc' , bm .bookmark_clean , { desc = ' Clean marks in buffer ' } ) -- clean all marks in local buffer
12+ map (' n' , ' <leader> mn' , bm .bookmark_next , { desc = ' Next bookmark in buffer ' } ) -- jump to next mark in local buffer
13+ map (' n' , ' <leader> mp' , bm .bookmark_prev , { desc = ' Previous bookmark in buffer ' } ) -- jump to previous mark in local buffer
1414 -- map('n', 'ml', bm.bookmark_list) -- show marked file list in quickfix window
15- map (' n' , ' ml' , telescope .extensions .bookmarks .list ) -- show marked file list in quickfix window
16- map (' n' , ' mx' , bm .bookmark_clear_all ) -- removes all bookmarks
15+ map (' n' , ' <leader> ml' , telescope .extensions .bookmarks .list , { desc = ' List bookmarks ' } ) -- show marked file list in quickfix window
16+ map (' n' , ' <leader> mx' , bm .bookmark_clear_all , { desc = ' Clear all bookmarks ' } ) -- removes all bookmarks
1717 end ,
18-
19- pcall (require (' telescope' ).load_extension , ' bookmarks' ),
2018 }
19+ pcall (require (' telescope' ).load_extension , ' bookmarks' )
2120 end ,
2221}
0 commit comments