1 files changed,
6 insertions(+),
3 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-08-31 13:51:44 +0300
Authored at:
2026-08-29 18:14:09 +0300
Change ID:
qwtlqwozoxwkzqszunploxvpmrllpkly
Parent:
486dcc1
M
plugin/viye.lua
ยทยทยท 130 130 pattern = "*", 131 131 group = group, 132 132 callback = function() 133 - if vim.api.nvim_buf_get_name(0) == "" then 134 - vim.bo.filetype = "viye" 135 - end 133 + -- defer so term:// buffers have their terminal buftype set before deciding 134 + vim.schedule(function() 135 + if vim.api.nvim_buf_get_name(0) == "" and vim.bo.buftype ~= "terminal" and vim.bo.filetype == "" then 136 + vim.bo.filetype = "viye" 137 + end 138 + end) 136 139 end, 137 140 }) 138 141 vim.api.nvim_create_autocmd("FileType", {