diff --git a/README.md b/README.md index 5967ce8..198fc27 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,9 @@ Plug 'cuducos/yaml.nvim' ## Configuration -### Showing the YAML patch and value in Neovim's winbar +### Showing the YAML path and value + +#### Neovim's winbar ```lua -- Get yaml key @@ -89,6 +91,18 @@ vim.api.nvim_create_autocmd({ "FileType" }, { }) ``` +#### Neovim's statusline (with [`lualine.nvim`](https://github.com/nvim-lualine/lualine.nvim)) + +```lua +require("lualine").setup({ + sections = { + lualine_x = { require("yaml_nvim").get_yaml_key_and_value }, + -- etc + } +}) + +``` + ## Reporting bugs and contributing There is a mini toolchain to help you test the plugin in isolation using a container. It requires: