Files
strata-compile/templates/.nvim.lua
Carlos Gutierrez 9e451469f5 git commit -m "feat: initial release of Strata framework v0.1.0
- Static compiler with STRC pattern (Static Template Resolution with
   Compartmentalized Layers)
   - Template syntax: { } interpolation, { s-for }, { s-if/s-elif/s-else
    }
   - File types: .strata, .compiler.sts, .service.sts, .api.sts, .sts,
   .scss
   - CLI tools: strata dev, strata build, strata g (generators)
   - create-strata scaffolding CLI with Pokemon API example
   - Dev server with WebSocket HMR (Hot Module Replacement)
   - Documentation: README, ARCHITECTURE, CHANGELOG, CONTRIBUTING,
   LICENSE
2026-01-16 09:01:29 -05:00

19 lines
647 B
Lua

-- Strata file type detection for NeoVim
vim.filetype.add({
extension = {
strata = "html", -- Templates: HTML syntax
sts = "typescript", -- Pure logic: TypeScript
["compiler.sts"] = "typescript", -- Compiler: TypeScript
["service.sts"] = "typescript", -- Service: TypeScript
["api.sts"] = "typescript", -- API contracts: TypeScript
},
pattern = {
[".*%.compiler%.sts"] = "typescript",
[".*%.service%.sts"] = "typescript",
[".*%.api%.sts"] = "typescript",
},
})
-- Optional: Add custom syntax highlighting or treesitter config
-- vim.treesitter.language.register("html", "strata")