Add Example for pickers
This commit is contained in:
30
README.md
30
README.md
@@ -12,11 +12,11 @@ modularity, allowing for easy customization.
|
|||||||
Community driven built-in [pickers](#pickers), [sorters](#sorters) and [previewers](#previewers).
|
Community driven built-in [pickers](#pickers), [sorters](#sorters) and [previewers](#previewers).
|
||||||
|
|
||||||
### Built-in Support:
|
### Built-in Support:
|
||||||
- [vim](#vim)
|
- [vim](#vim-pickers)
|
||||||
- [files](#files)
|
- [files](#files-pickers)
|
||||||
- [git](#git)
|
- [git](#git-pickers)
|
||||||
- [LSP](#lsp)
|
- [LSP](#lsp-pickers)
|
||||||
- [Treesitter](#treesitter)
|
- [Treesitter](#treesitter-pickers)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -354,9 +354,15 @@ require('telescope.builtin').fd({ -- or new custom picker's attach_mappings fiel
|
|||||||
|
|
||||||
## Pickers
|
## Pickers
|
||||||
|
|
||||||
Built-in function ready to be bound to any key you like :smile:.
|
Built-in functions. Ready to be bound to any key you like. :smile:
|
||||||
|
|
||||||
### Files
|
```vim
|
||||||
|
:lua require'telescope.builtin'.planets{}
|
||||||
|
|
||||||
|
:nnoremap <Leader>pp :lua require'telescope.builtin'.planets{}
|
||||||
|
```
|
||||||
|
|
||||||
|
### File Pickers
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
@@ -365,7 +371,7 @@ Built-in function ready to be bound to any key you like :smile:.
|
|||||||
| `builtin.grep_string` | Searches for a string under the cursor in current directory. |
|
| `builtin.grep_string` | Searches for a string under the cursor in current directory. |
|
||||||
| `builtin.live_grep` | Searches in current directory files. (respecting .gitignore) |
|
| `builtin.live_grep` | Searches in current directory files. (respecting .gitignore) |
|
||||||
|
|
||||||
### Vim
|
### Vim Pickers
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
@@ -390,7 +396,7 @@ Built-in function ready to be bound to any key you like :smile:.
|
|||||||
| `builtin.current_buffer_tags` | Lists Tags in current buffer. |
|
| `builtin.current_buffer_tags` | Lists Tags in current buffer. |
|
||||||
| .................................. | Your next awesome picker function here :D |
|
| .................................. | Your next awesome picker function here :D |
|
||||||
|
|
||||||
### LSP
|
### LSP Pickers
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
@@ -401,7 +407,7 @@ Built-in function ready to be bound to any key you like :smile:.
|
|||||||
| `builtin.lsp_range_code_actions` | Lists LSP range code action to be trigged on enter. |
|
| `builtin.lsp_range_code_actions` | Lists LSP range code action to be trigged on enter. |
|
||||||
| .................................. | Your next awesome picker function here :D |
|
| .................................. | Your next awesome picker function here :D |
|
||||||
|
|
||||||
### Git
|
### Git Pickers
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
@@ -411,14 +417,14 @@ Built-in function ready to be bound to any key you like :smile:.
|
|||||||
| `builtin.git_status` | Lists current changes per file with diff preview and add action. (Multiselection still WIP) |
|
| `builtin.git_status` | Lists current changes per file with diff preview and add action. (Multiselection still WIP) |
|
||||||
| .................................. | Your next awesome picker function here :D |
|
| .................................. | Your next awesome picker function here :D |
|
||||||
|
|
||||||
### Treesitter
|
### Treesitter Picker
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
| `builtin.treesitter` | Lists Function names, variables, from Treesitter! |
|
| `builtin.treesitter` | Lists Function names, variables, from Treesitter! |
|
||||||
| .................................. | Your next awesome picker function here :D |
|
| .................................. | Your next awesome picker function here :D |
|
||||||
|
|
||||||
### Lists
|
### Lists Picker
|
||||||
|
|
||||||
| Functions | Description |
|
| Functions | Description |
|
||||||
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
|-------------------------------------|---------------------------------------------------------------------------------------------|
|
||||||
|
|||||||
Reference in New Issue
Block a user