Okay, you have two options:
- Install a C/C++ compiler and a linker such as mingw-w64. Then make sure that it’s on emacs variable
exec-path
(either inspectexec-path
before installing, and install somewhere already on the path or add the location the compiler is installed toexec-path
). After this,treesit-auto
should automatically install the julia grammar when opening a julia file. - Download an already-compiled grammar from a trusted source and manually install it. For example:
- Grab the appropriate asset for the most recent release of the tree_sitter_julia jll (probably
x86_64-w64-mingw32
). - Extract the gzipped asset (may need to install something on windows to do this).
- Move
libtreesitter_julia.dll
from thebin
directory of the extracted asset to.emac.d/tree-sitter
- Rename
libtreesitter_julia.dll
tolibtree-sitter-julia.dll
. - Remove the
treesit-auto
use-package
form from yourinit.el
.
- Grab the appropriate asset for the most recent release of the tree_sitter_julia jll (probably