Skip to content

Commit

Permalink
feat(config): add default fold keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
DNLHC committed Jun 4, 2023
1 parent 96cedb4 commit 94719b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ glance.setup({
['t'] = actions.jump_tab,
['<CR>'] = actions.jump,
['o'] = actions.jump,
['l'] = actions.open_fold,
['h'] = actions.close_fold,
['<leader>l'] = actions.enter_win('preview'), -- Focus preview window
['q'] = actions.close,
['Q'] = actions.close,
['<Esc>'] = actions.close,
["<C-q>"] = actions.quickfix,
['<C-q>'] = actions.quickfix,
-- ['<Esc>'] = false -- disable a mapping
},
preview = {
Expand Down
4 changes: 3 additions & 1 deletion lua/glance/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ function config.setup(user_config, actions)
['s'] = actions.jump_split,
['t'] = actions.jump_tab,
['<CR>'] = actions.jump,
['l'] = actions.open_fold,
['h'] = actions.close_fold,
['o'] = actions.jump,
['<leader>l'] = actions.enter_win('preview'),
['q'] = actions.close,
['Q'] = actions.close,
['<Esc>'] = actions.close,
["<C-q>"] = actions.quickfix,
['<C-q>'] = actions.quickfix,
},
preview = {
['Q'] = actions.close,
Expand Down

0 comments on commit 94719b5

Please sign in to comment.