glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.57k stars 144 forks source link

Is there a way to have Google Apps Script autocomplete? #1610

Closed joshuadanpeterson closed 3 weeks ago

joshuadanpeterson commented 2 months ago

I'm using Firenvim in the Google Apps Script editor, and while my autocomplete gives me JavaScript syntax, it's sorely lacking with Google Apps Script. Is there a way to set up Firenvim so that way it autocompletes with Apps Script syntax? I've been racking my brain and can't seem to find a good solution. I was thinking clasp, but that seems to be project specific.

glacambre commented 2 months ago

I think the simplest option might be to use a typescript language server and to make it load the type definitions for google-apps-script ( https://www.npmjs.com/package/@types/google-apps-script ). How exactly to do this will depend on what LSP plugin/server you use though, so I can't really provide instructions

alerque commented 2 months ago

In case this is news: This is no different really from getting completions working in NeoVIM itself. It might be easier to play around with getting completions working in NeoVIM first, then the only thing you have to work out with Firenvim is getting the filetype set correctly so the right other plugins take over.

joshuadanpeterson commented 2 months ago

Gotcha, thanks @glacambre @alerque - I'll try it out and report back.

github-actions[bot] commented 3 weeks ago

Closing this issue because it has been awaiting a response from its author for more than a month. Please provide the requested information and this issue will be re-opened.