Last active
March 26, 2020 07:56
-
-
Save inlinechan/c7c2fd3d7bc31f1ed4bdd6132f087514 to your computer and use it in GitHub Desktop.
emacs lsp python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip install 'python-language-server[all]'
pip uninstall pyls