tweak(corfu): update dabbrev-ignore-buffer-modes
The Corfu documentation has been updated to suggest more modes to ignore with `dabbrev-ignore-buffer-modes`. This commit updates the list of modes to ignore in `cape-dabbrev` to match the documentation.
This commit is contained in:
parent
6756911721
commit
a8d612385f
1 changed files with 4 additions and 2 deletions
|
@ -126,10 +126,12 @@ use the minibuffer such as `query-replace'.")
|
||||||
(after! dabbrev
|
(after! dabbrev
|
||||||
(setq dabbrev-friend-buffer-function #'+dabbrev-friend-buffer-p
|
(setq dabbrev-friend-buffer-function #'+dabbrev-friend-buffer-p
|
||||||
dabbrev-ignored-buffer-regexps
|
dabbrev-ignored-buffer-regexps
|
||||||
'("^ "
|
'("\\` "
|
||||||
"\\(TAGS\\|tags\\|ETAGS\\|etags\\|GTAGS\\|GRTAGS\\|GPATH\\)\\(<[0-9]+>\\)?")
|
"\\(TAGS\\|tags\\|ETAGS\\|etags\\|GTAGS\\|GRTAGS\\|GPATH\\)\\(<[0-9]+>\\)?")
|
||||||
dabbrev-upcase-means-case-search t)
|
dabbrev-upcase-means-case-search t)
|
||||||
(add-to-list 'dabbrev-ignored-buffer-modes 'pdf-view-mode)))
|
(add-to-list 'dabbrev-ignored-buffer-modes 'pdf-view-mode)
|
||||||
|
(add-to-list 'dabbrev-ignored-buffer-modes 'doc-view-mode)
|
||||||
|
(add-to-list 'dabbrev-ignored-buffer-modes 'tags-table-mode)))
|
||||||
|
|
||||||
;; Make these capfs composable.
|
;; Make these capfs composable.
|
||||||
(advice-add #'lsp-completion-at-point :around #'cape-wrap-noninterruptible)
|
(advice-add #'lsp-completion-at-point :around #'cape-wrap-noninterruptible)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue