Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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