瀏覽代碼

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





Loading…
取消
儲存