LSP stuff
This commit is contained in:
parent
d348dff2a5
commit
3e1c7b565b
1 changed files with 17 additions and 7 deletions
|
|
@ -306,15 +306,24 @@
|
|||
:hook (typescript-mode . company-mode))
|
||||
|
||||
;; =================================================================
|
||||
;; LSP-mode. Common configuration for LSP-based systems.
|
||||
;; Common configuration for LSP-based systems.
|
||||
;; =================================================================
|
||||
(use-package lsp-mode :ensure t
|
||||
:commands lsp-mode
|
||||
;; (use-package lsp-mode :ensure
|
||||
;; :init (setq lsp-pyls-server-command "pyls-language-server")
|
||||
;; :commands (lsp lsp-mode lsp-deferred)
|
||||
;; :hook (python-mode . lsp-deferred)
|
||||
;; :config
|
||||
;; (use-package company-lsp
|
||||
;; :config (add-to-list 'company-backends 'company-lsp))
|
||||
;; (use-package lsp-ui
|
||||
;; :config (add-hook 'lsp-mode-hook 'lsp-ui-mode)))
|
||||
(use-package eglot :ensure
|
||||
:commands eglot-ensure
|
||||
:hook (python-mode . eglot-ensure)
|
||||
:config
|
||||
(use-package company-lsp
|
||||
:config (add-to-list 'company-backends 'company-lsp))
|
||||
(use-package lsp-ui
|
||||
:config (add-hook 'lsp-mode-hook 'lsp-ui-mode)))
|
||||
(add-to-list 'eglot-server-programs '(python-mode . ("pyls-language-server")))
|
||||
)
|
||||
|
||||
|
||||
|
||||
;; =================================================================
|
||||
|
|
@ -648,6 +657,7 @@
|
|||
(add-hook 'python-mode-hook 'my-python-mode-hook)
|
||||
|
||||
|
||||
|
||||
;; =================================================================
|
||||
;; JavaScript Support
|
||||
;; =================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue