Skip to content

Commit

Permalink
Remove typst patch since master merged it
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Nov 7, 2023
1 parent 2af9a35 commit fcb7bda
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions helix-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Contributor: Wojciech Kępka (wojciech@wkepka.dev)
pkgname=helix-git
_pkgname=helix
pkgver=23.05.492.g31f50bf5b
pkgver=23.10.32.g7bc564d3d
pkgrel=1
pkgdesc="A text editor written in rust"
url="https://helix-editor.com"
Expand All @@ -14,10 +14,8 @@ provides=('hx')
conflicts=('helix' 'helix-git')
source=(
"${_pkgname}::git+${_git}"
'https://raw.githubusercontent.com/uben0/tree-sitter-typst/master/queries/highlights.scm'
'https://raw.githubusercontent.com/uben0/tree-sitter-typst/master/queries/injections.scm'
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
sha256sums=('SKIP')

_bin="hx"
_lib_path="/usr/lib/${_pkgname}"
Expand All @@ -43,8 +41,6 @@ EOF
cp runtime/themes/fleet_dark.toml runtime/themes/tfleet_dark.toml
sed -i 's/"ui.background" = { bg = "Gray 10" }/"ui.background" = { }/' runtime/themes/tfleet_dark.toml

sed -i 's/\[language-server\]/[language-server]\n\ntypst-lsp = { command = "typst-lsp" }/' languages.toml

cat >> languages.toml <<EOF
[[language]]
Expand All @@ -71,34 +67,8 @@ language-servers = [ ]
indent = { tab-width = 4, unit = " " }
grammar = "c"
[[language]]
name = "typst"
scope = "source.typst"
injection-regex = "typ(st)?"
file-types = ["typ", "typst"]
roots = []
auto-format = false
comment-token = "//"
language-servers = ["typst-lsp"]
indent = { tab-width = 4, unit = " " }
grammar = "typst"
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'$' = '$'
'"' = '"'
[[grammar]]
name = "typst"
source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "791cac478226e3e78809b67ff856010bde709594" }
EOF

mkdir -p runtime/queries/typst
cp ../highlights.scm runtime/queries/typst/highlights.scm
cp ../injections.scm runtime/queries/typst/injections.scm
rm rust-toolchain.toml
}

Expand Down

0 comments on commit fcb7bda

Please sign in to comment.