Use :after

This commit is contained in:
outfoxxed 2023-02-21 18:29:24 -08:00
parent 445063561b
commit 0f2faf58ac
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

20
init.el
View file

@ -156,7 +156,8 @@
(global-tree-sitter-mode +1)) (global-tree-sitter-mode +1))
;; Rust support ;; Rust support
(use-package rustic) (use-package rustic
:after lsp-mode)
;; Nix support ;; Nix support
(use-package nix-mode (use-package nix-mode
@ -166,6 +167,7 @@
;; Treesitter based navigation ;; Treesitter based navigation
(use-package evil-textobj-tree-sitter (use-package evil-textobj-tree-sitter
:after (evil tree-sitter)
:config :config
(let ((define-scope (lambda (key outer inner) (let ((define-scope (lambda (key outer inner)
(define-key evil-outer-text-objects-map key outer) (define-key evil-outer-text-objects-map key outer)
@ -199,6 +201,7 @@
;; Highlight operations ;; Highlight operations
(use-package evil-goggles (use-package evil-goggles
:after evil
:init :init
(setq evil-goggles-duration 0.15) (setq evil-goggles-duration 0.15)
:config :config
@ -220,9 +223,12 @@
(treemacs-follow-mode +1) (treemacs-follow-mode +1)
(treemacs-tag-follow-mode +1) (treemacs-tag-follow-mode +1)
(treemacs-project-follow-mode +1)) (treemacs-project-follow-mode +1))
(use-package treemacs-evil) (use-package treemacs-evil
(use-package treemacs-projectile) :after (treemacs evil))
(use-package treemacs-magit) (use-package treemacs-projectile
:after (treemacs projectile))
(use-package treemacs-magit
:after (treemacs magit))
;; Explanations for keybindings ;; Explanations for keybindings
(use-package which-key (use-package which-key
@ -273,6 +279,7 @@
(add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop)) (add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop))
(use-package lsp-ui (use-package lsp-ui
:after lsp-mode
:init :init
(setq lsp-ui-doc-position 'at-point (setq lsp-ui-doc-position 'at-point
lsp-ui-doc-delay 0.5) lsp-ui-doc-delay 0.5)
@ -294,6 +301,9 @@
(define-key lsp-ui-peek-mode-map (kbd "J") #'lsp-ui-peek--select-next-file) (define-key lsp-ui-peek-mode-map (kbd "J") #'lsp-ui-peek--select-next-file)
(define-key lsp-ui-peek-mode-map (kbd "K") #'lsp-ui-peek--select-prev-file) (define-key lsp-ui-peek-mode-map (kbd "K") #'lsp-ui-peek--select-prev-file)
(define-key lsp-ui-peek-mode-map (kbd "o") #'lsp-ui-peek--goto-xref)) (define-key lsp-ui-peek-mode-map (kbd "o") #'lsp-ui-peek--goto-xref))
(use-package lsp-treemacs)
(use-package lsp-treemacs
:after (lsp-mode treemacs))
(setq gc-cons-threshold (* 1024 1024 100) (setq gc-cons-threshold (* 1024 1024 100)
read-process-output-max (* 1024 1024)) read-process-output-max (* 1024 1024))