Commit 7e059a810a45

Vincent Demeester <vincent@sbr.pm>
2020-04-06 14:05:10
emacs: remove prescient and lsp packages ๐Ÿ˜ˆ
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cd3a145
Changed files (2)
modules
profiles
tools
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
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)