DEV Community

Discussion on: How I set up my emacs for TypeScript + React

Collapse
 
davidasg180 profile image
David Alberto Serrano Garcia • Edited

Hi,
Taking for reference your video, at the second 00:10 you import map and when you accept the auto-complete and it automatically add the import on the top.
in vscode and neovim on both I manage to do that, but i don't know what i'm doing wrong to not making work that feature in spacemacs.
What tool or configuration make possible to achieve that?
It's a Typescript React environment
Thanks a lot

Collapse
 
lucasmafra profile image
Lucas Mafra

Hi David, import-js is what you're looking for github.com/Galooshi/emacs-import-j...

Collapse
 
viglioni profile image
Laura Viglioni

I had problems with import-js, that's why I removed from this text. Tide should be enough for auto importing 🤔

Collapse
 
viglioni profile image
Laura Viglioni

I'm sorry for the delay if I'm not mistaken the company package does that.

If it helps those are my configs about js/ts:

github.com/Viglioni/spacemacs/blob...
github.com/Viglioni/spacemacs/blob...
github.com/Viglioni/spacemacs/blob...