fix: autocmd example in README (#2635)

This commit is contained in:
Yifan Hu
2023-08-05 14:31:19 -05:00
committed by GitHub
parent d2e17ba18a
commit 31b05ad3c3

View File

@@ -412,9 +412,9 @@ vim.api.nvim_create_autocmd("User", {
pattern = "TelescopePreviewerLoaded",
callback = function(args)
if args.data.filetype ~= "help" then
vim.bo.number = true
vim.wo.number = true
elseif args.data.bufname:match("*.csv") then
vim.bo.wrap = false
vim.wo.wrap = false
end
end,
})