textadept-nim icon indicating copy to clipboard operation
textadept-nim copied to clipboard

Super slow when opening Nim files

Open genotrance opened this issue 6 years ago • 1 comments

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.

genotrance avatar Nov 11 '18 21:11 genotrance

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.

xomachine avatar Nov 12 '18 18:11 xomachine