diff options
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index 5ed684b..a0a5c98 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -7,21 +7,25 @@ vertico-count 20 vertico-cycle t) -(defun gx/setup-completion-in-minibuffer () - (setq-local completion-styles '(substring orderless) - completion-category-defaults nil - completion-category-overrides '((file (styles partial-completion))))) - (when (gx/maybe-require-package 'orderless) + (defun gx/setup-completion-in-minibuffer () + (setq-local completion-styles '(substring orderless) + completion-category-defaults nil + completion-category-overrides '((file (styles partial-completion))))) (add-hook 'minibuffer-setup-hook #'gx/setup-completion-in-minibuffer)) -(with-eval-after-load 'evil - (when (gx/maybe-require-package 'consult) +(when (gx/maybe-require-package 'consult) + (with-eval-after-load 'evil (evil-define-key 'normal 'global (kbd "<leader>fb") 'consult-buffer (kbd "<leader>fm") 'consult-recent-file (kbd "<leader>fc") 'execute-extended-command - (kbd "<leader>fl") 'consult-line))) + (kbd "<leader>fl") 'consult-line + (kbd "<leader>fs") 'consult-imenu) + (evil-define-key 'normal 'eglot--managed-mode + (kbd "<leader>fS") 'consult-eglot-symbols))) + +(setq consult-preview-key (kbd "C-c C-p")) (when (gx/maybe-require-package 'savehist) (add-hook 'after-init-hook #'savehist-mode)) |