Closed alexispurslane closed 4 months ago
But, notably, manually downloading, adding to my load path, and requiring the package works.
It isn't clear from your description whether you're using one of the recommended configurations. You're not seeing global-treesit-auto-mode
even after using one of use-package
or require
?
It isn't clear from your description whether you're using one of the recommended configurations. You're not seeing
global-treesit-auto-mode
even after using one ofuse-package
orrequire
?
I tried Doom Emacs's custom package management solution that replaces both of those, and then package-install
, naively assuming on no evidence that Doom's package management solution and package-install just did a use-package or a require under the hood. But apparently they don't, since once I did a use-package or require it worked just fine, as mentioned above lol. So this appears to be a doom-specific thing. I resolved the problem by ceasing to use doom and writing my own vanilla emacs config from scratch lol, at which point treesit-auto proceeded to work like a dream come true!
@alexispurslane i think it's using straight, i've remeber reading about it in the README, i'm going to investigate it more and see on their docs
Edit 1: use a macro layer gived by the straight.el
README
's and see if it works
https://github.com/radian-software/straight.el?tab=readme-ov-file#integration-with-use-package
(straight-use-package 'use-package)
Edit 2: i've hadn't success using this layer
since i want to keep using doom, i hovered to emacs-tree-sitter
official docs
https://emacs-tree-sitter.github.io/syntax-highlighting/
config.el
(add-hook 'javascript-mode-hook #'tree-sitter-hl-mode)
(add-hook 'nix-mode-hook #'tree-sitter-hl-mode)
(add-hook 'c-mode-hook #'tree-sitter-hl-mode)
(global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)
manually adding hooks for languages that i want tree-sitter-hl to be used, "similar" to vim
's autocmds
and augroups
What the title says. If I do
M-x package-install
treesit-auto
, it says it was successfully installed, but I get nothing. Notreesit-auto-install-all
, noglobal-treesit-auto-mode
, nothing at all.Here's my emacs information according to
doom info
: