Sublime Forum

JavaScript: Auto import modules/functions using LSP?

#1

Hi!

I’m wondering if it’s possible to auto-import modules using an LSP package?

I currently have installed LSP-Typescript and LSP-ESlint but I can only autoimport local files.

For example, if I type “merge” I’d like to have the option to import it from lodash:

In PHP, for example, the Intellephense LSP package can automatically import functions:

I’m sure there must be an equivalent for javascript, right?

1 Like

#2

@rafark Did you ever find an answer to this?

0 Likes