/lsp-py

Emacs lsp-mode client for python-lsp-server

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

Lsp-py

Emacs client for the currently maintained python-lsp-server. Use with lsp-mode and get the most out of developing python in Emacs.

Features

See the above linked LSP implementation for a list of features. You can customize all options listed here. Once you’ve installed `lsp-py` you can find and customize them via `M-x customize-group RET lsp-py`. Features include linting, renaming, reference finding, documentation.

Installation

First, you’ll need the language server implementation:

pip install python-lsp-server

Currently, you’ll need to clone this repo and install it manually. The easiest way to do so is using straight.el with use-package:

(use-package lsp-py
  :init
  (add-to-list 'lsp-enabled-clients 'lsp-py)
  ;; with https
  ;;:straight (lsp-py :type git :host github :repo "AnselmC/lsp-py"))
  ;; with ssh
  :straight (lsp-py :type git :host nil :repo "git@github.com:AnselmC/lsp-py"))

Disclaimer

I haven’t tested all the different configuration options, so some options may not be working.