lispyville icon indicating copy to clipboard operation
lispyville copied to clipboard

Set text objects only in lispyville-mode

Open meliache opened this issue 2 years ago • 2 comments

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.

meliache avatar Aug 23 '21 11:08 meliache