complete-computing-environment/python.org

1.7 KiB

Python in Emacs through LSP

Python is a high-level interpreted Programming Language with some good functional constructs and a whitespace-sensitive syntax, dynamic types, objects and classes. It's a good Tool for data processing, it's a good tool for building small utilities, particularly with libraries like Click

(provide 'cce/python)

In the CCE, Python programming is done using pyright in the LSP.

{ pkgs, lib, ... }:

{
  home.packages = [
    pkgs.pyright
  ];
}
(use-package lsp-pyright
  :after (python-mode lsp)
  :hook
  (python-mode . lsp)
  (python-mode . company-mode)
  :bind (:map python-mode-map
              ("C-<tab>" . company-lsp)))

(use-package pyvenv)