···11| `:YAMLYankKey [register]` | `yaml.yank_key([register])` | Yanks the full path of the key for the current key/value pair. The default register is the unnamed one (`"`) |
12| `:YAMLYankValue [register]` | `yaml.yank_value([register])` | Yanks the value of the current key/value pair. The default register is the unnamed one (`"`) |
13| `:YAMLQuickfix` | `yaml.quickfix()` | Generates a quickfix with key/value pairs |
014| `:YAMLTelescope` | `yaml.telescope()` | Full path key/value fuzzy finder via [Telescope](https://github.com/nvim-telescope/telescope.nvim) **if installed** |
1516
···20* **Neovim 0.9** or newer
21* [`nvim-treesitter`](https://github.com/nvim-treesitter/nvim-treesitter) with [YAML support](https://github.com/ikatyang/tree-sitter-yaml)
2223-Telescope is **optional**.
2425<details>
26···41 ft = { "yaml" }, -- optional
42 dependencies = {
43 "nvim-treesitter/nvim-treesitter",
044 "nvim-telescope/telescope.nvim", -- optional
45 },
46}
47```
4849-50### With [`packer.nvim`](https://github.com/wbthomason/packer.nvim):
5152```lua
···55 ft = { "yaml" }, -- optional
56 requires = {
57 "nvim-treesitter/nvim-treesitter",
058 "nvim-telescope/telescope.nvim" -- optional
59 },
60}
···63### With [`vim-plug`](https://github.com/junegunn/vim-plug):
6465```viml
066Plug 'nvim-telescope/telescope.nvim' " optional
67Plug 'nvim-treesitter/nvim-treesitter'
68Plug 'cuducos/yaml.nvim'
···11| `:YAMLYankKey [register]` | `yaml.yank_key([register])` | Yanks the full path of the key for the current key/value pair. The default register is the unnamed one (`"`) |
12| `:YAMLYankValue [register]` | `yaml.yank_value([register])` | Yanks the value of the current key/value pair. The default register is the unnamed one (`"`) |
13| `:YAMLQuickfix` | `yaml.quickfix()` | Generates a quickfix with key/value pairs |
14+| `:YAMLSnacks` | `yaml.snacks()` | Full path key/value fuzzy finder via [Snacks](https://github.com/folke/snacks.nvim) **if installed** |
15| `:YAMLTelescope` | `yaml.telescope()` | Full path key/value fuzzy finder via [Telescope](https://github.com/nvim-telescope/telescope.nvim) **if installed** |
1617
···21* **Neovim 0.9** or newer
22* [`nvim-treesitter`](https://github.com/nvim-treesitter/nvim-treesitter) with [YAML support](https://github.com/ikatyang/tree-sitter-yaml)
2324+Snacks and Telescope are **optional**.
2526<details>
27···42 ft = { "yaml" }, -- optional
43 dependencies = {
44 "nvim-treesitter/nvim-treesitter",
45+ "folke/snacks.nvim", -- optional
46 "nvim-telescope/telescope.nvim", -- optional
47 },
48}
49```
50051### With [`packer.nvim`](https://github.com/wbthomason/packer.nvim):
5253```lua
···56 ft = { "yaml" }, -- optional
57 requires = {
58 "nvim-treesitter/nvim-treesitter",
59+ "folke/snacks.nvim", -- optional
60 "nvim-telescope/telescope.nvim" -- optional
61 },
62}
···65### With [`vim-plug`](https://github.com/junegunn/vim-plug):
6667```viml
68+Plug 'folke/snacks.nvim' " optional
69Plug 'nvim-telescope/telescope.nvim' " optional
70Plug 'nvim-treesitter/nvim-treesitter'
71Plug 'cuducos/yaml.nvim'
+6-3
doc/help.txt
···3==============================================================================
4USAGE INSTRUCTIONS *yaml.nvim-usage*
56-This plugins offers the following commands and, if |:telescope.nvim| is
7-available, an extension reached by `:Telescope yaml` to navigate through the
8-YAML loaded in the current buffer.
910:YAMLView *:YAMLView*
11···44 collects all nested keys and outputs them as a dot-case string (e.g.:
45 `root.parent.child.key = value`). It uses Vim's native |:cex| function, so
46 the cursor is positioned in the first selection of the |:quickfix|.
000004748:YAMLTelescope *YAMLTelescope*
49
···3==============================================================================
4USAGE INSTRUCTIONS *yaml.nvim-usage*
56+This plugins offers the following commands:
0078:YAMLView *:YAMLView*
9···42 collects all nested keys and outputs them as a dot-case string (e.g.:
43 `root.parent.child.key = value`). It uses Vim's native |:cex| function, so
44 the cursor is positioned in the first selection of the |:quickfix|.
45+46+:YAMLSnacks *YAMLSnacks*
47+48+ Creates a |:quickfix| list as in |:YAMLQuickfix|, and loads it with
49+ |:Snacks.picker|. Only available if |:Snacks| is installed.
5051:YAMLTelescope *YAMLTelescope*
52