[Emacs] Run lsp-deferred on python

This commit is contained in:
Ivan Malison 2023-03-20 23:36:24 -06:00
parent 38dec5029b
commit 616cc3500b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2246,10 +2246,12 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
;; company-jedi or company-lsp. ;; company-jedi or company-lsp.
;; (remove-hook 'completion-at-point-functions ;; (remove-hook 'completion-at-point-functions
;; 'python-completion-complete-at-point 'local) ;; 'python-completion-complete-at-point 'local)
(unless imalison:use-lsp-python (if imalison:use-lsp-python
(lsp-deferred)
(imalison:jedi-setup)))) (imalison:jedi-setup))))
:config :config
(progn (progn
(require 'lsp-pylsp)
(use-package sphinx-doc) (use-package sphinx-doc)
(unbind-key "C-j" python-mode-map) (unbind-key "C-j" python-mode-map)
(add-hook 'python-mode-hook #'imalison:python-mode))) (add-hook 'python-mode-hook #'imalison:python-mode)))