mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
feat(corfu): update smart tab completion
This commit updates the smart tab functionality so that: 1. The only functionality checked is for the modules that are enabled. 2. The priority of the TAB behavior is tunable by the user. This also updates the TAB behavior for the Corfu module to be `indent-for-tab-command` instead of `completion-at-point` so that users can use the TAB key to indent their code and navigating Org tables. We also address #7372 by checking overriding-terminal-local-map, as that is used by Embark.
This commit is contained in:
7
modules/config/default/autoload/filters.el
Normal file
7
modules/config/default/autoload/filters.el
Normal file
@@ -0,0 +1,7 @@
|
||||
;;; config/default/autoload/filters.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +yas-active-p ()
|
||||
"Return t if we are in a YASnippet field."
|
||||
(memq (bound-and-true-p yas--active-field-overlay)
|
||||
(overlays-in (1- (point)) (1+ (point)))))
|
Reference in New Issue
Block a user