 (use-package savehist
   :init (savehist-mode))
 
-(use-package perspective
-  :ensure t
-  :bind (("C-x b" . persp-switch-to-buffer*)
-         ("C-x k" . persp-kill-buffer*))
-  :config
-  (persp-mode))
 
 (use-package multiple-cursors
   ;; Multiple Cursors for Emacs.

  :init
  (selectrum-mode +1))


(use-package consult
  :ensure t

  (setq consult-project-root-function
        (lambda ()
          (when-let (project (project-current))
            (car (project-roots project)))))

  :config
  (consult-customize consult--source-buffer :hidden t :default nil)
  (consult-customize consult--source-recent-file :hidden t :default nil)
  (add-to-list 'consult-buffer-sources persp-consult-source)
  (add-to-list 'consult-buffer-sources `(:name "vterminal"
                                               :hidden f
                                               :narrow ?v
                                               :category buffer
                                               :state    ,#'consult--buffer-state
                                               :items ,(lambda() (when (boundp 'multi-vterm-buffer-list) (mapcar #'buffer-name multi-vterm-buffer-list)))) 'append))
  
;; Enable richer annotations using the Marginalia package
(use-package marginalia
