missionpinball / mpf-ls

Mission Pinball Framework Language Server
5 stars 8 forks source link

Add instructions for Emacs support #6

Closed seanirby closed 4 years ago

seanirby commented 4 years ago

Here are some instructions to get mpf-ls integrated with Emacs. I tested this by following the instructions and then opening the config.yaml in one of my MPF projects. MPF completion candidates appear automatically or when I manually trigger a request for completion.

One thing I noticed was that if I was filling out the driverboards field then I didn't see a completion candidate appear when I started typing p3_roc. Not sure if that is expected but if it isn't then let me know and I can dig deeper.

jabdoa2 commented 4 years ago

Thanks for writing that up!

Currently, we only complete enums and references to other devices. Technically, all fields in the hardware section are just a list of strings. There are a lot of things which could be improved in mpf-ls. Gotta start somewhere ;-).