mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Only expand emmet snippets if at word boundary
Makes emmet a little less aggressive on TAB. Addresses #3383
This commit is contained in:
@ -122,7 +122,9 @@ snippet, or `emmet-expand-yas'/`emmet-expand-line', depending on whether
|
||||
`yas-minor-mode' is enabled or not."
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(cond ((<= (current-column) (current-indentation))
|
||||
(cond ((or (<= (current-column) (current-indentation))
|
||||
(not (eolp))
|
||||
(not (memq (char-after) (list ?\n ?\s ?\t))))
|
||||
#'indent-for-tab-command)
|
||||
((bound-and-true-p yas-minor-mode)
|
||||
(if (yas--templates-for-key-at-point)
|
||||
|
Reference in New Issue
Block a user