Skip to content

Commit

Permalink
tweak(prog): declare treesit as pseudo package when TS is available
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 7, 2024
1 parent 6905f23 commit 97f679c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
;; Goto end of previous function
(define-key evil-normal-state-map (kbd "[F") (+cmdfy! (evil-textobj-tree-sitter-goto-textobj "function.outer" t t))))

(push 'treesit straight-built-in-pseudo-packages) ; ts-movement depends on it
(when (+emacs-features-p 'tree-sitter)
(push 'treesit straight-built-in-pseudo-packages)) ; ts-movement depends on it

(use-package ts-movement
:straight (:host github :repo "haritkapadia/ts-movement")
Expand Down

0 comments on commit 97f679c

Please sign in to comment.