Skip to content

Instantly share code, notes, and snippets.

@inlinechan
Last active March 26, 2020 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inlinechan/c7c2fd3d7bc31f1ed4bdd6132f087514 to your computer and use it in GitHub Desktop.
Save inlinechan/c7c2fd3d7bc31f1ed4bdd6132f087514 to your computer and use it in GitHub Desktop.
emacs lsp python
(use-package lsp-mode
:custom
;; (lsp-auto-guess-root nil)
(lsp-prefer-flymake nil)
(lsp-ui-doc-position 'bottom)
:hook ((python-mode . lsp))
:commands lsp)
(use-package lsp-ui
:config
;; (setq lsp-ui-doc-use-webkit t)
:commands lsp-ui-mode)
(use-package company-lsp
:config
(setq company-lsp-enable-snippet t)
;; (push 'company-lsp company-backends)
:commands company-lsp)
(use-package lsp-ivy
:commands lsp-ivy-workspace-symbol)
(use-package lsp-treemacs
:commands lsp-treemacs-errors-list)
(use-package python
:config
(setq python-indent-guess-indent-offset nil)
(setq python-indent-offset 4)
:bind (:map python-mode-map
("M-*" . pop-tag-mark)))
@inlinechan
Copy link
Author

pip install 'python-language-server[all]'
pip uninstall pyls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment