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
|
yas-selected-text
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"\\(^ *\\|\n? $\\)" ""
|
"\\(^ *\\|\n? $\\)" ""
|
||||||
(buffer-substring-no-properties (region-beginning)
|
(buffer-substring-no-properties evil-visual-beginning
|
||||||
(1- (region-end)))))))
|
evil-visual-end)))))
|
||||||
(add-hook 'yas-before-expand-snippet-hook '+snippets|yas-before-expand)
|
(add-hook 'yas-before-expand-snippet-hook '+snippets|yas-before-expand)
|
||||||
|
|
||||||
(defun +snippets|yas-after-expand ()
|
(defun +snippets|yas-after-expand ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue