Skip to content

README: fix typo extension->extensions #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,17 @@ require('telescope').setup({
For a particular command you can pass it directly in your key mapping to the function:

```lua
require('telescope').extension.orgmode.search_headings({ max_depth = 3 })
require('telescope').extensions.orgmode.search_headings({ max_depth = 3 })
```

You can also create a key mapping, that allows you to search directly for org files:

```lua
vim.set.keymap(
vim.keymap.set(
"n",
"<Leader>off",
"<Leader>off",
function()
require('telescope').extension.orgmode.search_headings({ mode = "orgfiles" })
require('telescope').extensions.orgmode.search_headings({ mode = "orgfiles" })
end,
{ desc = "Find org files"}
)
Expand Down