spywhere / detect-language.nvim

neovim plugin for better language auto-detection, powered by tree-sitter
52 stars 0 forks source link

Use coroutine for async parsing #2

Closed spywhere closed 3 years ago

spywhere commented 3 years ago

If possible, try using coroutine instead for parsing.

spywhere commented 3 years ago

Ground work is already done, only need an implementation.

https://github.com/spywhere/detect-language.nvim/blob/f95b3ed89e6ac45e22dc1af810ef18f1a4ef35f6/lua/detect-language/utils/async.lua