feature/snippets: use evil-visual-{beginning,end} in +snippets|yas-before-expand
This commit is contained in:
parent
78758f67e6
commit
f380cff5c4
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@
|
|||
yas-selected-text
|
||||
(replace-regexp-in-string
|
||||
"\\(^ *\\|\n? $\\)" ""
|
||||
(buffer-substring-no-properties (region-beginning)
|
||||
(1- (region-end)))))))
|
||||
(buffer-substring-no-properties evil-visual-beginning
|
||||
evil-visual-end)))))
|
||||
(add-hook 'yas-before-expand-snippet-hook '+snippets|yas-before-expand)
|
||||
|
||||
(defun +snippets|yas-after-expand ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue