Skip to content

Commit

Permalink
doc: update README adding info about issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
prochri committed Jan 12, 2023
1 parent 2660e8e commit 989b17c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ use {

Make sure to load this after telescope.

If you are creating keybindings to telescope via lua functions,
either load this plugin first and then bind the function, or wrap the call in another function (see #2):
```lua
-- This may bind to old telescope function depending on your load order:
-- vim.keymap.set('n', '<leader>f', require'telescope'.builtins.find_files)
-- So: better wrap it in a function:
vim.keymap.set('n', '<leader>f', function() require'telescope'.builtins.find_files() end)
```

## Configuration

The default configuration should come with sane values, so you can get started right away!
Expand Down

0 comments on commit 989b17c

Please sign in to comment.