Skip to content

Commit

Permalink
Add md<->typst alias
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Oct 13, 2023
1 parent 2af76f6 commit afea1ad
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion helix-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Contributor: Wojciech Kępka ([email protected])
pkgname=helix-git
_pkgname=helix
pkgver=23.05.435.g1c88432ef
pkgver=23.05.475.g574f82130
pkgrel=1
pkgdesc="A text editor written in rust"
url="https://helix-editor.com"
Expand Down Expand Up @@ -53,6 +53,30 @@ language-servers = [ ]
indent = { tab-width = 4, unit = " " }
grammar = "c"
[[language]]
name = "yacc"
scope = "source.yacc"
injection-regex = "yacc"
file-types = ["yacc"]
roots = []
auto-format = false
comment-token = "//"
language-servers = [ ]
indent = { tab-width = 4, unit = " " }
grammar = "c"
[[language]]
name = "typst"
scope = "source.typst"
injection-regex = "typst"
file-types = ["typ"]
roots = []
auto-format = false
comment-token = "//"
language-servers = [ ]
indent = { tab-width = 4, unit = " " }
grammar = "markdown"
EOF

rm rust-toolchain.toml
Expand All @@ -68,6 +92,8 @@ package() {
mkdir -p "${pkgdir}${_lib_path}"
rm -r "runtime/grammars/sources"
cp -r runtime/queries/c runtime/queries/flex
cp -r runtime/queries/c runtime/queries/yacc
cp -r runtime/queries/markdown runtime/queries/typst
cp -r "runtime" "${pkgdir}${_lib_path}"

install -Dm 0755 "target/release/${_bin}" "${pkgdir}${_lib_path}/${_bin}"
Expand Down

0 comments on commit afea1ad

Please sign in to comment.