๐Ÿ’ YAML toolkit for Neovim users

Adds instructions to see YAML info in the statusline

Thanks for the inspiration, @joshzcold :)

+15 -1
+15 -1
README.md
··· 69 69 70 70 ## Configuration 71 71 72 - ### Showing the YAML patch and value in Neovim's winbar 72 + ### Showing the YAML path and value 73 + 74 + #### Neovim's winbar 73 75 74 76 ```lua 75 77 vim.api.nvim_create_autocmd({ "FileType" }, { ··· 78 80 vim.opt_local.winbar = [[%{%v:lua.require("yaml_nvim").get_yaml_key_and_value()%}]] 79 81 end, 80 82 }) 83 + ``` 84 + 85 + #### Neovim's statusline (with [`lualine.nvim`](https://github.com/nvim-lualine/lualine.nvim)) 86 + 87 + ```lua 88 + require("lualine").setup({ 89 + sections = { 90 + lualine_x = { require("yaml_nvim").get_yaml_key_and_value }, 91 + -- etc 92 + } 93 + }) 94 + 81 95 ``` 82 96 83 97 ## Reporting bugs and contributing