๐Ÿ’ YAML toolkit for Neovim users

Merge pull request #33 from treatmesubj/patch-1

no-name buffer winbar

authored by

Eduardo Cuducos and committed by
GitHub
01e643a3 1c1096a0

+7 -3
+7 -3
README.md
··· 108 108 #### Neovim's winbar 109 109 110 110 ```lua 111 - vim.api.nvim_create_autocmd({ "BufEnter", "CursorMoved" }, { 112 - pattern = { "*.yaml" }, 111 + vim.api.nvim_create_autocmd({ "FileType" }, { 112 + pattern = { "yaml" }, 113 113 callback = function() 114 - vim.opt_local.winbar = require("yaml_nvim").get_yaml_key_and_value() 114 + vim.api.nvim_create_autocmd({ "CursorMoved" }, { 115 + callback = function() 116 + vim.opt_local.winbar = require("yaml_nvim").get_yaml_key() 117 + end, 118 + }) 115 119 end, 116 120 }) 117 121 ```