fix(tree-sitter): feature gate evil-textobj-ts
where ts stands for tree sitter Only install 'evil-textobj-treesitter' if :editor evil +everywhere is enabled Also Comment which text objs are not currently not working
This commit is contained in:
parent
862e7980d8
commit
74a444db00
2 changed files with 10 additions and 11 deletions
|
@ -21,6 +21,7 @@
|
||||||
(error-message-string e))
|
(error-message-string e))
|
||||||
(signal (car e) (cadr e)))))))
|
(signal (car e) (cadr e)))))))
|
||||||
|
|
||||||
|
(when (featurep! :editor evil +everywhere)
|
||||||
(use-package! evil-textobj-tree-sitter
|
(use-package! evil-textobj-tree-sitter
|
||||||
:after tree-sitter
|
:after tree-sitter
|
||||||
:config
|
:config
|
||||||
|
@ -29,4 +30,4 @@
|
||||||
:textobj "C" (evil-textobj-tree-sitter-get-textobj "class.inner") (evil-textobj-tree-sitter-get-textobj "class.outer")
|
:textobj "C" (evil-textobj-tree-sitter-get-textobj "class.inner") (evil-textobj-tree-sitter-get-textobj "class.outer")
|
||||||
:textobj "c" nil (evil-textobj-tree-sitter-get-textobj "comment.outer")
|
:textobj "c" nil (evil-textobj-tree-sitter-get-textobj "comment.outer")
|
||||||
:textobj "i" (evil-textobj-tree-sitter-get-textobj "conditional.inner") (evil-textobj-tree-sitter-get-textobj "conditional.outer")
|
:textobj "i" (evil-textobj-tree-sitter-get-textobj "conditional.inner") (evil-textobj-tree-sitter-get-textobj "conditional.outer")
|
||||||
:textobj "l" (evil-textobj-tree-sitter-get-textobj "loop.inner") (evil-textobj-tree-sitter-get-textobj "loop.outer")))
|
:textobj "l" (evil-textobj-tree-sitter-get-textobj "loop.inner") (evil-textobj-tree-sitter-get-textobj "loop.outer"))))
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
;;; tools/tree-sitter/packages.el
|
;;; tools/tree-sitter/packages.el
|
||||||
|
|
||||||
(package! tree-sitter
|
(package! tree-sitter
|
||||||
;; :ignore (null (bound-and-true-p module-file-suffix))
|
|
||||||
:pin "c7a1c34549cad41a3618c6f17e0e9dabd3e98fe1")
|
:pin "c7a1c34549cad41a3618c6f17e0e9dabd3e98fe1")
|
||||||
(package! tree-sitter-langs
|
(package! tree-sitter-langs
|
||||||
;; :ignore (null (bound-and-true-p module-file-suffix))
|
|
||||||
:pin "e7b8db7c4006c04a4bc1fc6865ec31f223843192")
|
:pin "e7b8db7c4006c04a4bc1fc6865ec31f223843192")
|
||||||
|
|
||||||
(when (featurep! :editor evil +everywhere)
|
(when (featurep! :editor evil +everywhere)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue