Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid custom autocmd conflicts with the help popup buffer
Issue ===== If the user has set up custom autocmds that trigger for `help` buffers, the yazi.nvim help popup buffer will be affected by them. I noticed this after setting the following autocmd: ```lua vim.api.nvim_create_autocmd("FileType", { -- always open help buffers in a vertical split pattern = { "help", "man" }, command = "wincmd L", }) ``` Solution ======== Only use the `syntax` option to set the filetype of the help buffer to `help`. This way, the user's custom autocmds will not affect the help popup buffer.
- Loading branch information