Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapc11/telescope-yaml.nvim
Telescope extension for fuzzy finding YAML files
https://github.com/dapc11/telescope-yaml.nvim
neovim neovim-plugin telescope telescope-extension
Last synced: 3 months ago
JSON representation
Telescope extension for fuzzy finding YAML files
- Host: GitHub
- URL: https://github.com/dapc11/telescope-yaml.nvim
- Owner: dapc11
- Created: 2023-05-18T20:53:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T06:22:18.000Z (about 1 year ago)
- Last Synced: 2024-04-16T03:11:24.943Z (7 months ago)
- Topics: neovim, neovim-plugin, telescope, telescope-extension
- Language: Lua
- Homepage:
- Size: 148 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telescope-yaml
Telescope extension for searching within YAML files. The finder comes with feature to copy the value or absolute YAML path (key).
## Showcase
![Telescope-yaml](./resources/yaml-find.png)
## Requirements
- telescope.nvim (required)
## Setup
You can setup the extension by adding the following to your configuration:
```lua
{
"nvim-telescope/telescope.nvim",
dependencies = { "dapc11/telescope-yaml.nvim" }
}
```Load the extension somewhere in your configuration:
```lua
require("telescope").load_extension("telescope-yaml")
```## Mappings
| Mapping (insert mode) | Description |
| --------------------- | ----------------------- |
| Ctrl+k | Copy current value |
| Ctrl+v | Copy absolute YAML path |### Keymap
Add keymap for the utility:
```lua
vim.keymap.set("n", "fy", "Telescope telescope-yaml")
```## TODO
- Search for selected word
- Search for word under cursor