This commit is contained in:
iFargle 2023-08-30 12:44:12 +09:00
parent 1080ada8f3
commit 842c1a95e3

View file

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