Replace ivy with selectrum

This commit is contained in:
Dimitri Lozeve 2021-07-14 10:37:43 +02:00
parent 4cf44403f3
commit e332addee0

58
init.el
View file

@ -140,35 +140,30 @@
(exec-path-from-shell-copy-env "GAMBIT") (exec-path-from-shell-copy-env "GAMBIT")
(exec-path-from-shell-copy-env "GERBIL_HOME"))) (exec-path-from-shell-copy-env "GERBIL_HOME")))
(use-package ivy (use-package selectrum
:straight t :straight t
:config :init
(ivy-mode 1) (selectrum-mode +1))
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume))
(use-package swiper (use-package prescient
:straight t :straight t)
:config
(global-set-key "\C-s" 'swiper))
(use-package counsel (use-package selectrum-prescient
:straight t :straight t
:config :after (selectrum prescient)
(global-set-key (kbd "M-x") 'counsel-M-x) :init
(global-set-key (kbd "C-x C-f") 'counsel-find-file) (selectrum-prescient-mode +1))
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
(global-set-key (kbd "<f1> v") 'counsel-describe-variable) (use-package consult
(global-set-key (kbd "<f1> l") 'counsel-find-library) :straight t
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol) :bind (("C-s" . consult-line)))
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
(global-set-key (kbd "C-c g") 'counsel-git) (use-package marginalia
(global-set-key (kbd "C-c j") 'counsel-git-grep) :straight t
(global-set-key (kbd "C-c a") 'counsel-ag) :bind (:map minibuffer-local-map
(global-set-key (kbd "C-x l") 'counsel-locate) ("M-A" . marginalia-cycle))
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)) :init
(marginalia-mode +1))
(use-package deadgrep (use-package deadgrep
:straight t :straight t
@ -214,7 +209,7 @@
(use-package projectile (use-package projectile
:straight t :straight t
:init :init
(setq projectile-completion-system 'ivy) (setq projectile-completion-system 'default)
:config :config
(setq projectile-enable-caching t) (setq projectile-enable-caching t)
(setq projectile-tags-command "ctags-universal -Re") (setq projectile-tags-command "ctags-universal -Re")
@ -284,10 +279,6 @@
(setq lsp-ui-sideline-show-hover nil) (setq lsp-ui-sideline-show-hover nil)
(setq lsp-ui-doc-position 'top)) (setq lsp-ui-doc-position 'top))
(use-package lsp-ivy
:commands lsp-ivy-workspace-symbol
:straight t)
(use-package lsp-pyright (use-package lsp-pyright
:straight t :straight t
:hook (python-mode . (lambda () :hook (python-mode . (lambda ()
@ -725,17 +716,12 @@
:config :config
(setq org-roam-graph-executable "dot") (setq org-roam-graph-executable "dot")
(setq org-roam-graph-extra-config '(("overlap" . "false") ("rankdir" . "LR"))) (setq org-roam-graph-extra-config '(("overlap" . "false") ("rankdir" . "LR")))
(setq org-roam-completion-system 'ivy) (setq org-roam-completion-system 'default)
(setq org-roam-link-use-custom-faces 'everywhere) (setq org-roam-link-use-custom-faces 'everywhere)
(set-face-attribute 'org-roam-link nil :foreground "lime green") (set-face-attribute 'org-roam-link nil :foreground "lime green")
(require 'org-roam-protocol) (require 'org-roam-protocol)
(setq org-roam-dailies-directory "daily/")) (setq org-roam-dailies-directory "daily/"))
(use-package org-roam-bibtex
:straight t
:after org-roam
:hook (org-roam-mode . org-roam-bibtex-mode))
(use-package deft (use-package deft
:straight t :straight t
:after org :after org