commit 7e059a810a4538ca047b3dc551680179449d0b6a
parent cd3a1458b7ccf5812d7fba6fb28e71599217299b
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 6 Apr 2020 14:05:10 +0200
emacs: remove prescient and lsp packages 😈
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 0 insertions(+), 59 deletions(-)
diff --git a/modules/profiles/emacs.nix b/modules/profiles/emacs.nix
@@ -96,8 +96,6 @@ in
iedit
ivy
ivy-hydra
- ivy-prescient
- ivy-rich
json-mode
markdown-mode
mpdel
@@ -121,7 +119,6 @@ in
pandoc-mode
pinentry
# popup
- prescient
projectile
projectile-ripgrep
pdf-tools
@@ -144,8 +141,6 @@ in
yasnippet
yaml-mode
anzu
- company-lsp
- company-prescient
darkroom
eshell-prompt-extras
esh-autosuggest
@@ -155,8 +150,6 @@ in
go-mode
hide-mode-line
ivy-posframe
- lsp-mode
- lsp-ui
magit
magit-popup
pretty-hydra
diff --git a/tools/emacs/config/setup-completion.el b/tools/emacs/config/setup-completion.el
@@ -160,56 +160,4 @@ Otherwise, use `counsel-projectile-switch-project'."
"--ignore-file" ,(expand-file-name ".ignore" (getenv "HOME")))
"Default rg arguments used in the functions in `counsel' and `projectile' packages.")
-
-(if *sys/full*
- (progn
- (use-package ivy-rich
- :after ivy
- :config
- (setq ivy-virtual-abbreviate 'full
- ivy-rich-switch-buffer-align-virtual-buffer t
- ivy-rich-path-style 'abbrev)
- (ivy-rich-mode 1))
-
- (use-package prescient
- :config
- (setq prescient-history-length 50
- prescient-filter-method '(fuzzy initialism regexp))
- (prescient-persist-mode 1))
-
-
- (use-package ivy-prescient
- :after (prescient ivy)
- :config
- (setq ivy-prescient-sort-commands
- '(:not swiper ivy-switch-buffer counsel-switch-buffer)
- ivy-prescient-retain-classic-highlighting t
- ivy-prescient-enable-filtering t
- ivy-prescient-enable-sorting t)
- (defun prot/ivy-prescient-filters (str)
- "Specify an exception for `prescient-filter-method'.
-
-This new rule can be used to tailor the results of individual
-Ivy-powered commands, using `ivy-prescient-re-builder'."
- (let ((prescient-filter-method '(literal regexp)))
- (ivy-prescient-re-builder str)))
-
- (setq ivy-re-builders-alist
- '((counsel-rg . prot/ivy-prescient-filters)
- (counsel-grep . prot/ivy-prescient-filters)
- (counsel-yank-pop . prot/ivy-prescient-filters)
- (swiper . prot/ivy-prescient-filters)
- (swiper-isearch . prot/ivy-prescient-filters)
- (swiper-all . prot/ivy-prescient-filters)
- (t . ivy-prescient-re-builder)))
- (ivy-prescient-mode 1))
-
- (use-package company-prescient
- :ensure company
- :after (company prescient)
- :config
- (company-prescient-mode 1))
-
- ))
-
(provide 'setup-completion)