feat: Users can now choose where to load grammars/queries from.

This commit is contained in:
Spencer Brower
2026-07-24 15:59:22 -04:00
parent 961b3f41b0
commit 1992349520
4 changed files with 33 additions and 9 deletions
+5
View File
@@ -7,6 +7,8 @@ import "core:prof/spall"
import "core:sync"
import "core:time"
import "treesitter"
SPALL :: #config(SPALL, false)
when SPALL {
@@ -48,6 +50,9 @@ main :: proc() {
context.allocator = site_allocator(&site)
build_vfs(&site)
treesitter.grammar_dir = site.grammars
treesitter.query_dir = site.queries
site_load_content(&site)
render_site(&site)
log.infof("Built site in %s", time.tick_since(tick))