Browse Source

Add small lsp configs

master
10sr 2 years ago
parent
commit
39b093d18f
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 15 additions and 5 deletions
  1. +15
    -5
      emacs.el

+ 15
- 5
emacs.el View 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)))





Loading…
Cancel
Save