Attention: prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one. The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you. Feat: - prompt prefix does no longer always end with space - selection_caret configurable. Default: `> ` - result_prefix configurable. Default: ` ` - more actions for git_branches - <c-t> does track the branch - <c-r> does rebase branch - also added delete branch action but not configured. See readme on how to do that Fixes: - fix docgen ci - Better error for lsp_workspace_symbols - better formatting for CONTRIBUTING.md - move from systemlist to plenary.job - git branch now supports checkout on remote branches
221 lines
5.7 KiB
Plaintext
221 lines
5.7 KiB
Plaintext
================================================================================
|
|
*telescope.nvim*
|
|
|
|
Telescope.nvim is a plugin for fuzzy finding and neovim. It helps you search,
|
|
filter, find and pick things in Lua.
|
|
|
|
To find out more:
|
|
https://github.com/nvim-telescope/telescope.nvim
|
|
|
|
:h telescope.setup
|
|
:h telescope.builtin
|
|
:h telescope.layout
|
|
:h telescope.actions
|
|
|
|
telescope.extensions() *telescope.extensions()*
|
|
|
|
Use telescope.extensions to reference any extensions within your
|
|
configuration.
|
|
While the docs currently generate this as a function, it's actually a table.
|
|
Sorry.
|
|
|
|
|
|
|
|
telescope.load_extension({name}) *telescope.load_extension()*
|
|
|
|
Load an extension.
|
|
|
|
|
|
Parameters: ~
|
|
{name} (string) Name of the extension
|
|
|
|
|
|
telescope.register_extension({mod}) *telescope.register_extension()*
|
|
|
|
Register an extension. To be used by plugin authors.
|
|
|
|
|
|
Parameters: ~
|
|
{mod} (table) Module
|
|
|
|
|
|
telescope.setup({opts}) *telescope.setup()*
|
|
|
|
Setup function to be run by user. Configures the defaults, extensions
|
|
and other aspects of telescope.
|
|
|
|
|
|
|
|
Valid keys for {opts.defaults}
|
|
|
|
*telescope.defaults.entry_prefix*
|
|
entry_prefix: ~
|
|
Prefix in front of each result entry. Current selection not included.
|
|
|
|
Default: ' '
|
|
|
|
*telescope.defaults.prompt_prefix*
|
|
prompt_prefix: ~
|
|
Will be shown in front of the prompt.
|
|
|
|
Default: '> '
|
|
|
|
*telescope.defaults.scroll_strategy*
|
|
scroll_strategy: ~
|
|
Determines what happens you try to scroll past view of the picker.
|
|
|
|
Available options are:
|
|
- "cycle" (default)
|
|
- "limit"
|
|
|
|
*telescope.defaults.selection_caret*
|
|
selection_caret: ~
|
|
Will be shown in front of the selection.
|
|
|
|
Default: '> '
|
|
|
|
*telescope.defaults.selection_strategy*
|
|
selection_strategy: ~
|
|
Determines how the cursor acts after each sort iteration.
|
|
|
|
Available options are:
|
|
- "reset" (default)
|
|
- "follow"
|
|
- "row"
|
|
|
|
*telescope.defaults.sorting_strategy*
|
|
sorting_strategy: ~
|
|
Determines the direction "better" results are sorted towards.
|
|
|
|
Available options are:
|
|
- "descending" (default)
|
|
- "ascending"
|
|
|
|
Parameters: ~
|
|
{opts} (table) Configuration opts. Keys: defaults, extensions
|
|
|
|
|
|
|
|
================================================================================
|
|
*telescope.builtin*
|
|
|
|
A collection of builtin pickers for telesceope.
|
|
|
|
Meant for both example and for easy startup.
|
|
|
|
Any of these functions can just be called directly by doing:
|
|
|
|
:lua require('telescope.builtin').$NAME()
|
|
|
|
This will use the default configuration options.
|
|
Other configuration options are still in flux at the moment
|
|
|
|
builtin.live_grep() *builtin.live_grep()*
|
|
|
|
Live grep means grep as you type.
|
|
|
|
|
|
|
|
|
|
================================================================================
|
|
*telescope.layout*
|
|
|
|
|
|
Layout strategies are different functions to position telescope.
|
|
|
|
All layout strategies are functions with the following signature: >
|
|
|
|
function(picker, columns, lines)
|
|
-- Do some calculations here...
|
|
return {
|
|
preview = preview_configuration
|
|
results = results_configuration,
|
|
prompt = prompt_configuration,
|
|
}
|
|
end
|
|
<
|
|
|
|
Parameters: ~
|
|
- picker : A Picker object. (docs coming soon)
|
|
- columns : number Columns in the vim window
|
|
- lines : number Lines in the vim window
|
|
|
|
TODO: I would like to make these link to `telescope.layout_strategies.*`, but it's not yet possible.
|
|
|
|
Available layout strategies include:
|
|
horizontal:
|
|
- See |layout_strategies.horizontal|
|
|
|
|
vertical:
|
|
- See |layout_strategies.vertical|
|
|
|
|
flex:
|
|
- See |layout_strategies.flex|
|
|
|
|
|
|
layout_strategies.center() *layout_strategies.center()*
|
|
|
|
Centered layout wih smaller default sizes (I think)
|
|
|
|
+--------------+
|
|
| Preview |
|
|
+--------------+
|
|
| Prompt |
|
|
+--------------+
|
|
| Result |
|
|
| Result |
|
|
| Result |
|
|
+--------------+
|
|
|
|
|
|
|
|
|
|
layout_strategies.flex() *layout_strategies.flex()*
|
|
|
|
Swap between `horizontal` and `vertical` strategies based on the window
|
|
width
|
|
- Supports `vertical` or `horizontal` features
|
|
|
|
Uses:
|
|
flip_columns
|
|
flip_lines
|
|
|
|
|
|
|
|
layout_strategies.horizontal() *layout_strategies.horizontal()*
|
|
|
|
Horizontal previewer
|
|
|
|
+-------------+--------------+
|
|
| | |
|
|
| Results | |
|
|
| | Preview |
|
|
| | |
|
|
+-------------| |
|
|
| Prompt | |
|
|
+-------------+--------------+
|
|
|
|
|
|
|
|
layout_strategies.vertical() *layout_strategies.vertical()*
|
|
|
|
Vertical perviewer stacks the items on top of each other.
|
|
|
|
+-----------------+
|
|
| Previewer |
|
|
| Previewer |
|
|
| Previewer |
|
|
+-----------------+
|
|
| Result |
|
|
| Result |
|
|
| Result |
|
|
+-----------------+
|
|
| Prompt |
|
|
+-----------------+
|
|
|
|
|
|
|
|
|
|
|
|
vim:tw=78:ts=8:ft=help:norl:
|