MPF Language Server
Project description
Language server for MPF config.
Installation (from pypi)
pip3 install mpf-ls
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
Built Distribution
Hashes for mpf-language-server-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ecb9253d42698419b5c61b0567adce9dfdf7b5c73a5824e6ee6cf79ee25900c |
|
MD5 | 0b47a439fd7643e454521e846e8a4fa3 |
|
BLAKE2b-256 | d884167e677aba67f66881543f9af5e10f43d2ca504af33e487c3559ddb21c8c |
Hashes for mpf_language_server-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7604a3e4785b14ba03353a2aa6f4d4a4c7f70addd7f850793e981dd1a4c613cf |
|
MD5 | 0761c6039fe955959751bd4622e4e122 |
|
BLAKE2b-256 | 4f3e7b1b180b269182340d069a343d1e0c7c503916cc59bc5aac1c7a099cabb5 |