Sfoglia il codice sorgente

Add small lsp configs

master
10sr 2 anni fa
parent
commit
39b093d18f
Firmato da: 10sr ID Chiave GPG: 7BEC428194130EB2
1 ha cambiato i file con 15 aggiunte e 5 eliminazioni
  1. +15
    -5
      emacs.el

+ 15
- 5
emacs.el Vedi File

@@ -2990,11 +2990,21 @@ ARGS are not used."
(when (fboundp 'projectile-mode)
(projectile-mode 1))

(with-eval-after-load 'eglot
(when (fboundp 'with-venv-advice-add)
(with-venv-advice-add 'eglot--executable-find))
(set-variable 'eldoc-echo-area-use-multiline-p nil)
(set-variable 'eglot-extend-to-xref t))
;; (with-eval-after-load 'eglot
;; (when (fboundp 'with-venv-advice-add)
;; (with-venv-advice-add 'eglot--executable-find))
;; (set-variable 'eldoc-echo-area-use-multiline-p nil)
;; (set-variable 'eglot-extend-to-xref t))

(set-variable 'lsp-python-ms-auto-install-server t)
(set-variable 'lsp-python-ms-python-executable-cmd "python3")
(add-hook 'python-mode-hook #'my-lsp-python-setup)

(defun my-lsp-python-setup ()
"Setup python ms."
(when (and (fboundp 'lsp)
(require 'lsp-python-ms nil t))
(lsp)))





Caricamento…
Annulla
Salva