feat: re-run filetype detection after attach

This commit is contained in:
əlemi 2024-09-06 19:55:01 +02:00
parent 373b155864
commit f2121df6dc
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -90,6 +90,7 @@ local function attach(name, buffer, content, nowait)
controller:callback(function (_controller) async:send() end)
vim.defer_fn(function() async:send() end, 500) -- force a try_recv after 500ms
vim.filetype.match({ buf = buffer })
print(" ++ attached to buffer " .. name)
return controller
end