Telescope extension for searching within YAML files. The finder comes with feature to copy the value or absolute YAML path (key).
- telescope.nvim (required)
You can setup the extension by adding the following to your configuration:
{
"nvim-telescope/telescope.nvim",
dependencies = { "dapc11/telescope-yaml.nvim" }
}
Load the extension somewhere in your configuration:
require("telescope").load_extension("telescope-yaml")
Mapping (insert mode) | Description |
---|---|
Ctrl+k | Copy current value |
Ctrl+v | Copy absolute YAML path |
Add keymap for the utility:
vim.keymap.set("n", "<leader>fy", "<cmd>Telescope telescope-yaml")
- Search for selected word
- Search for word under cursor