|
|
@ -28,6 +28,13 @@ There are two things you can do about this warning: |
|
|
|
(when (not package-archive-contents) |
|
|
|
(when (not package-archive-contents) |
|
|
|
(package-refresh-contents)) |
|
|
|
(package-refresh-contents)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Bootstrap use-package if it doesn't exist |
|
|
|
|
|
|
|
(when (not (package-installed-p 'use-package)) |
|
|
|
|
|
|
|
(package-refresh-contents) |
|
|
|
|
|
|
|
(package-install 'use-package)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(require 'use-package) |
|
|
|
|
|
|
|
|
|
|
|
;; Load the package.el file |
|
|
|
;; Load the package.el file |
|
|
|
(load-file "~/.emacs.d/package.el") |
|
|
|
(load-file "~/.emacs.d/package.el") |
|
|
|
|
|
|
|
|
|
|
@ -200,20 +207,14 @@ There are two things you can do about this warning: |
|
|
|
|
|
|
|
|
|
|
|
;; LSP |
|
|
|
;; LSP |
|
|
|
(use-package lsp-mode |
|
|
|
(use-package lsp-mode |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
:hook (python-mode . lsp-deferred) |
|
|
|
(setq lsp-print-io nil) |
|
|
|
:commands (lsp lsp-deferred)) |
|
|
|
|
|
|
|
|
|
|
|
(use-package lsp-ui |
|
|
|
|
|
|
|
:ensure t |
|
|
|
(use-package lsp-ui |
|
|
|
:config |
|
|
|
:ensure t |
|
|
|
(setq lsp-ui-sideline-ignore-duplicate t) |
|
|
|
:hook (lsp-mode . lsp-ui-mode)) |
|
|
|
(add-hook 'lsp-mode-hook 'lsp-ui-mode)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-package company-lsp |
|
|
|
|
|
|
|
:ensure t |
|
|
|
|
|
|
|
:config |
|
|
|
|
|
|
|
(push 'company-lsp company-backends))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;;; PYTHON ;;;;;;;;;;;;;;;;;; |
|
|
|
;;;;; PYTHON ;;;;;;;;;;;;;;;;;; |
|
|
|