๐Ÿ’ YAML toolkit for Neovim users

Minor edits to the missing parser docs

+23 -20
+23 -20
README.md
··· 46 46 } 47 47 ``` 48 48 49 - <details> 50 - 51 - <summary>If you get a <code>no parser for 'yaml' language</code> error message</summary> 52 - 53 - This means that you need to install a parser such as [`tree-sitter-yaml`](https://github.com/ikatyang/tree-sitter-yaml). 54 - 55 - Then you need to enable it in your nvim config. Here is an example. 56 - 57 - ```lua 58 - { 59 - "nvim-treesitter/nvim-treesitter", 60 - build = ":TSUpdate", 61 - config = function() 62 - require("nvim-treesitter.configs").setup({ 63 - ensure_installed = { "yaml" }, 64 - }, 65 - }) 66 - end, 67 - } 68 - </details> 69 49 70 50 ### With [`packer.nvim`](https://github.com/wbthomason/packer.nvim): 71 51 ··· 87 67 Plug 'nvim-treesitter/nvim-treesitter' 88 68 Plug 'cuducos/yaml.nvim' 89 69 ``` 70 + 71 + ### No YAML parser? 72 + 73 + If you get a <code>no parser for 'yaml' language</code> error message, this means that you need to install a parser such as [`tree-sitter-yaml`](https://github.com/ikatyang/tree-sitter-yaml). If that is the case, you need to enable it in your config. 74 + 75 + <details> 76 + 77 + <summary>Here is an example, using <code>lazy.nvim</code></summary> 78 + 79 + ```lua 80 + { 81 + "nvim-treesitter/nvim-treesitter", 82 + build = ":TSUpdate", 83 + config = function() 84 + require("nvim-treesitter.configs").setup({ 85 + ensure_installed = { "yaml" }, 86 + }, 87 + }) 88 + end, 89 + } 90 + ``` 91 + 92 + </details> 90 93 91 94 ## Configuration 92 95