Skip to content

Commit

Permalink
[docgen] Update doc/telescope.txt
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
Github Actions committed Jun 3, 2021
1 parent e0c9efb commit f27b453
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions doc/telescope.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,35 @@ your desired picker by passing a lua table to the picker with all of the
options you want to use. Here's an example with the live_grep picker:

:lua require('telescope.builtin').live_grep({
prompt_title = 'find string in open buffers...',
grep_open_files = true
})
prompt_title = 'find string in open buffers...',
grep_open_files = true
})
-- or with dropdown theme
:lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{
previewer = false
})

You can also pass default configurations to builtin pickers. These options will
also be added if the picker is executed with `Telescope find_files`.

require("telescope").setup {
pickers = {
buffers = {
show_all_buffers = true,
sort_lastused = true,
theme = "dropdown",
previewer = false,
mappings = {
i = {
["<c-d>"] = require("telescope.actions").delete_buffer,
},
n = {
["<c-d>"] = require("telescope.actions").delete_buffer,
}
}
}
}
}

This will use the default configuration options. Other configuration options
are still in flux at the moment
Expand Down

0 comments on commit f27b453

Please sign in to comment.