···11-# yaml.nvim [](https://github.com/cuducos/yaml.nvim/actions/workflows/tests.yml)
11+# yaml.nvim
2233Simple tools to help developers working YAML in [Neovim](https://neovim.io).
44···30303131<summary>What about older versions of Neovim?</summary>
32323333-* For **Neovim 0.7 or 0.8**, pin to [`7925bd2`](https://github.com/cuducos/yaml.nvim/commit/7925bd2bf03c718996ccad7e1a49eafe40cd3246)
3434-* For **Neovim 0.5 or 0.6**, pin to [`155c23d`](https://github.com/cuducos/yaml.nvim/commit/155c23de8f99fdb424f8aa713bcb993cc2538c6c)
3333+* For **Neovim 0.7 or 0.8**, pin to `7925bd2`
3434+* For **Neovim 0.5 or 0.6**, pin to `155c23d`
35353636 </details>
3737···41414242```lua
4343{
4444- "cuducos/yaml.nvim",
4444+ "https://tangled.org/cuducos.me/yaml.nvim",
4545 ft = { "yaml" }, -- optional
4646 dependencies = {
4747 "folke/snacks.nvim", -- optional
···55555656```lua
5757use {
5858- "cuducos/yaml.nvim",
5858+ "https://tangled.org/cuducos.me/yaml.nvim",
5959 ft = { "yaml" }, -- optional
6060 requires = {
6161 "folke/snacks.nvim", -- optional
···7171Plug 'folke/snacks.nvim' " optional
7272Plug 'nvim-telescope/telescope.nvim' " optional
7373Plug 'ibhagwan/fzf-lua' " optional
7474-Plug 'cuducos/yaml.nvim'
7474+Plug 'https://tangled.org/cuducos.me/yaml.nvim'
7575```
76767777### No YAML parser?
···129129<details>
130130131131<summary>For non-named buffers</summary>
132132-133133-See [#33](https://github.com/cuducos/yaml.nvim/pull/33), for example:
134132135133```lua
136134vim.api.nvim_create_autocmd({ "BufEnter", "FileType" }, {
+1-1
manage
···2222end
23232424local test_with = function(bin)
2525- for line in io.lines(".github/workflows/tests.yml") do
2525+ for line in io.lines(".tangled/workflows/tests.yml") do
2626 if string.find(line, "PlenaryBustedDirectory") then
2727 local cleaned = string.gsub(line, "-? run: ", "")
2828 exec_and_exit(bin .. " run -it yaml.nvim " .. cleaned)
+7
tests/init.lua
···1212 end
13131414 vim.opt.rtp:append(dir)
1515+1616+ -- In isolated environments (like Nix), vim.opt.rtp doesn't automatically
1717+ -- add paths to Lua's package.path. We need to explicitly add them so
1818+ -- require() can find modules like nvim-treesitter.configs
1919+ package.path = package.path .. ";" .. dir .. "/lua/?.lua;" .. dir .. "/lua/?/init.lua"
2020+ package.cpath = package.cpath .. ";" .. dir .. "/?.so"
2121+1522 vim.cmd("runtime plugin/" .. repo)
1623end
1724