DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

apply itself for igo files #896

Open pjebs opened 5 years ago

pjebs commented 5 years ago

Is there anyway for gosublime to pretend that an igo file is a go file and apply itself?

DisposaBoy commented 5 years ago

What's the scope name of an igo file? You can find it by opening the Sublime Text console and running view.scope_name(0).

pjebs commented 5 years ago

'text.plain '

DisposaBoy commented 5 years ago

Is that inside a igo file? I'd expect it to be using a custom syntax definition of some sort. What's an igo file anyway?

pjebs commented 5 years ago

https://github.com/rocketlaunchr/igo

DisposaBoy commented 5 years ago

If you or someone else created a syntax definition for it, I'd be willing to add a special-case if possible. But I don't think that'd be enough because it seems like it uses a different syntax that would fail when GoSublime uses the official go tools on it.