Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (use-package all-the-icons
- :if (display-graphic-p))
- (use-package vertico
- :custom
- (vertico-count 13) ; Number of candidates to display
- (vertico-resize t)
- (vertico-cycle nil) ; Go from last to first candidate and first to last (cycle)?
- :config
- (vertico-mode))
- (use-package marginalia
- :custom
- (marginalia-max-relative-age 0)
- (marginalia-align 'right)
- :init
- (marginalia-mode))
- (use-package orderless
- :custom
- (completion-styles '(orderless)) ; Use orderless
- (completion-category-defaults nil) ; I want to be in control!
- (completion-category-overrides
- '((file (styles basic-remote ; For `tramp' hostname completion with `vertico'
- orderless)))))
- (use-package consult)
- ;; Use `consult-completion-in-region' if Vertico is enabled.
- ;; Otherwise use the default `completion--in-region' function.1
- (setq completion-in-region-function
- (lambda (&rest args)
- (apply (if vertico-mode
- #'consult-completion-in-region
- #'completion--in-region)
- args)))
- (use-package all-the-icons-completion
- :after (marginalia all-the-icons)
- :hook (marginalia-mode . all-the-icons-completion-marginalia-setup)
- :init
- (all-the-icons-completion-mode))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement