Use pyright as language server when `lsp-pyright` is available
Also ignore the .cache directory, as that's the one `lsp-pyright' is installing it's local copy of `pyright` into.
This commit is contained in:
parent
76990dcdf2
commit
dc8a028742
|
@ -59,3 +59,4 @@
|
||||||
/flycheck_init.el
|
/flycheck_init.el
|
||||||
/projects
|
/projects
|
||||||
/.lsp-session-v1
|
/.lsp-session-v1
|
||||||
|
/.cache/
|
||||||
|
|
3
init.el
3
init.el
|
@ -3020,6 +3020,9 @@ With given ARG, display files in `db/important-document-path’."
|
||||||
|
|
||||||
(use-package python
|
(use-package python
|
||||||
:config (progn
|
:config (progn
|
||||||
|
(unless (require 'lsp-pyright nil :no-error)
|
||||||
|
(message "`lsp-pyright' not available, using defaults from `lsp'"))
|
||||||
|
|
||||||
(add-hook 'python-mode-hook #'highlight-indentation-mode)
|
(add-hook 'python-mode-hook #'highlight-indentation-mode)
|
||||||
(add-hook 'python-mode-hook #'company-mode)
|
(add-hook 'python-mode-hook #'company-mode)
|
||||||
(add-hook 'python-mode-hook #'lsp)))
|
(add-hook 'python-mode-hook #'lsp)))
|
||||||
|
|
Loading…
Reference in New Issue