xomachine / textadept-nim

Nim language plugin for Textadept with autocompletion support (The developement is suspended. Ping me if you need something.)
MIT License
21 stars 3 forks source link

Super slow when opening Nim files #6

Open genotrance opened 5 years ago

genotrance commented 5 years ago

Using latest textadept and textadept-nim, when I try to open a nim file, it takes a long time to load.

4kb file = 15 seconds 12kb file = 40 seconds

Also, once file is loaded, completion also is super slow.

xomachine commented 5 years ago

It is probably a nimsuggest issue. The plugin checks currently open file at startup synchronously, so it waits until nimsuggest will respond. As far as I know the textadept API does not allow async autocompletion.