diff --git a/home-manager/common/software/cli/doom-emacs.d/config.el b/home-manager/common/software/cli/doom-emacs.d/config.el index 3cdaa4ee..859edeac 100644 --- a/home-manager/common/software/cli/doom-emacs.d/config.el +++ b/home-manager/common/software/cli/doom-emacs.d/config.el @@ -4,17 +4,15 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; LSP Modules -;; Python -(use-package lsp-python-ms - :ensure t - :hook (python-mode . (lambda () - (require 'lsp-python-ms) - (lsp))) - :init - (setq lsp-python-ms-executable (executable-find "python-lsp-server"))) - ;; Bash (use-package lsp-mode :commands lsp :hook (sh-mode . lsp)) + + ;; Python + (defun lspython () + "Updates the lsp-python-ms-executable variable and runs lsp." + (interactive) + (setq lsp-python-ms-executable (executable-find "python-lsp-server")) + (lsp-deferred)) \ No newline at end of file