I started using the evil-textobj-treesitter package and use it to bind the f to the treesitter function textobject. But treesitter has no emacs lisp support, so there I still rely on the lispyville text objects. Both packages modify the global evil-inner-text-objects-map and evil-outer-text-objects-map maps, so I run into conflicts when using both.
I looked into lispyville.el and found the comment (by @noctuid from 2018):
;; TODO only define in `lispyville-mode-map'
So I guess it is a known issue. Any idea how to go about it? I guess this is an issue that every package that adds custom textobjects to emacs which only work in certain major modes has and I'd be interested if anyone has a solution. My idea would be to have custom textobject maps that are toggle via minor modes, but then one should somehow make evil respect those custom maps.
I created an equivalent issue for evil-textobj-treesitter here.
I started using the evil-textobj-treesitter package and use it to bind the
fto the treesitter function textobject. But treesitter has no emacs lisp support, so there I still rely on the lispyville text objects. Both packages modify the globalevil-inner-text-objects-mapandevil-outer-text-objects-mapmaps, so I run into conflicts when using both.I looked into
lispyville.eland found the comment (by @noctuid from 2018):;; TODO only define in `lispyville-mode-map'So I guess it is a known issue. Any idea how to go about it? I guess this is an issue that every package that adds custom textobjects to emacs which only work in certain major modes has and I'd be interested if anyone has a solution. My idea would be to have custom textobject maps that are toggle via minor modes, but then one should somehow make evil respect those custom maps.
I created an equivalent issue for
evil-textobj-treesitterhere.