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-pathbefore installing, and install somewhere already on the path or add the location the compiler is installed toexec-path). After this,treesit-autoshould 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.dllfrom thebindirectory of the extracted asset to.emac.d/tree-sitter - Rename
libtreesitter_julia.dlltolibtree-sitter-julia.dll. - Remove the
treesit-autouse-packageform from yourinit.el.
- Grab the appropriate asset for the most recent release of the tree_sitter_julia jll (probably