Преглед на файлове

Add small lsp configs

master
10sr преди 3 години
родител
ревизия
39b093d18f
Подписан от: 10sr GPG ключ ID: 7BEC428194130EB2
променени са 1 файла, в които са добавени 15 реда и са изтрити 5 реда
  1. +15
    -5
      emacs.el

+ 15
- 5
emacs.el Целия файл

@@ -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)))





Зареждане…
Отказ
Запис