MPF Language Server
Project description
Language server for MPF config.
Installation (from pypi)
pip3 install mpf-language-server
Usage in IDE
IntelliJ Based IDE
For any IntelliJ based IDE (such as PyCharm, WebStorm or PhpStorm) you need to install a LSP (Language Server Protocol) plugin. Then add mpfls as Raw command for yaml files in “Settings -> Languages & Frameworks -> Language Server Protocol -> Server Definitions”.
VSCode
For vsCode install the extension in vscode-client.
Emacs
Integration with Emacs is accomplished using lsp-mode.
A minimal completion setup can be achieved with the lsp-mode
, yaml-mode
, company
, and lsp-company
packages. Company is a general purpose completion package for Emacs. lsp-company
is a helper package for using Company with :code`lsp-mode`.
Install
lsp-mode
,company
,yaml-mode
, andlsp-company
by runningM-x package-install
and following the instructions.Add the following to your Emacs init file:
;; Register the mpfls server (require 'lsp-mode) (add-hook 'yaml-mode-hook #'lsp) (defvar lsp-language-id-configuration '((yaml-mode . "mpfls"))) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection "mpfls") :major-modes '(yaml-mode) :server-id 'mpfls)) (add-hook 'after-init-hook 'global-company-mode) ;; Configure company-lsp (require 'company-lsp) (push 'company-lsp company-backends)
Installation (from git for local development)
If you want to contribute to this repository:
git checkout https://github.com/missionpinball/mpf-ls/
cd mpf-ls
pip3 install -e .
License
This project is made available under the MIT License. Code is based on the Python language server (also MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for mpf-language-server-0.54.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 797c486212fe570f93f5bf3aa002cdeb79b451233f89a5c92e2bed1d633abe59 |
|
MD5 | 7533134431a1ef8dea76656a9e4f57a0 |
|
BLAKE2b-256 | 404ba2b0075cf60d2ee9f2b9214301d53eb3a83e236968ebbb49c1dc8ec18afc |