chore: highlight which_key on README (#1298)

This commit is contained in:
fdschmidt93
2021-10-04 20:30:32 +02:00
committed by GitHub
parent 440c598de4
commit e39ed31f17

View File

@@ -139,7 +139,14 @@ require('telescope').setup{
defaults = {
-- Default configuration for telescope goes here:
-- config_key = value,
-- ..
mappings = {
i = {
-- map actions.which_key to <C-h> (default: <C-/>)
-- actions.which_key shows the mappings for your picker,
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
["<C-h>"] = "which_key"
}
}
},
pickers = {
-- Default configuration for builtin pickers goes here:
@@ -194,7 +201,8 @@ Many familiar mapping patterns are setup as defaults.
| `<C-t>` | Go to a file in a new tab |
| `<C-u>` | Scroll up in preview window |
| `<C-d>` | Scroll down in preview window |
| `<C-/>/?` | Show picker mappings (in insert & normal mode, respectively) |
| `<C-/>` | Show mappings for picker actions (insert mode)|
| `?` | Show mappings for picker actions (normal mode)|
| `<C-c>` | Close telescope |
| `<Esc>` | Close telescope (in normal mode) |
| `<Tab>` | Toggle selection and move to next selection |
@@ -206,6 +214,8 @@ Many familiar mapping patterns are setup as defaults.
To see the full list of mappings, check out `lua/telescope/mappings.lua` and the
`default_mappings` table.
**Tip**: you can use `<C-/>` and `?` in insert and normal mode, respectively, to show the actions mapped to your picker.
Much like [builtin pickers](#pickers), there are a number of
[actions](https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/actions/init.lua)
you can pick from to remap your telescope buffer mappings, or create a new