chore: define undefined variable in config example (#976)

Define the undefined variable “action_state”, which is used in a code
example for replacing picker mappings in the README.
This commit is contained in:
Ole
2021-07-11 23:56:10 +02:00
committed by GitHub
parent 49b86b4610
commit 5692edd004

View File

@@ -344,6 +344,7 @@ its `attach_mappings` key to a function, like so:
```lua ```lua
local actions = require('telescope.actions') local actions = require('telescope.actions')
local action_set = require('telescope.actions.set') local action_set = require('telescope.actions.set')
local action_state = require('telescope.actions.state')
-- Picker specific remapping -- Picker specific remapping
------------------------------ ------------------------------
require('telescope.builtin').fd({ -- or new custom picker's attach_mappings field: require('telescope.builtin').fd({ -- or new custom picker's attach_mappings field: