spywhere / detect-language.nvim

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

Parsing timeout #8

Open spywhere opened 3 years ago

spywhere commented 3 years ago

Allow each of the language to timed out for better performance and not keep hanging the process.

spywhere commented 3 years ago

Performance workaround: Disable auto-detection by setting

events = {},

in require('detect-language').setup {}

spywhere commented 3 years ago

libuv thread is not helping as it cannot access vim module inside a thread.