Commit Graph

714 Commits (794b2bef345dc7474013b1810857aa058434cac1)

Author SHA1 Message Date
Niklas Gruhn 5ce77de0dc
fix: Lean language server consuming excessive memory (#11683)
The Lean process, spawned by the language server, might use excessive
memory in certain situation, causing the entire system to freeze. See:

   https://github.com/leanprover/lean4/issues/5321

The language server accepts a CLI flag for limiting memory use. I set
it to 1024MB, which might be a bit arbitrary, but definitly prevents
the system from crashing.
2 months ago
Yavorski 620dfceb84
Add cshtml to html file-types (#11540) 3 months ago
Samy AB 91e642ce50
Add gherkin syntax highlighting (#11083)
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
3 months ago
Kiara Grouwstra 3b306fa022
Update languages.toml - add nixd, closes #10734 (#10767) 4 months ago
Sampo Siltanen 2e90868a37
Update fsharp tree sitter repo reference (#11061)
The repository reference used here was a fork from the actual
repository, which has now been moved under ionide organization, where it is
in active maintenance and development.

The commit SHA is the currently latest commit from main branch.

The injections.scm is copied as is from the fsharp treesitter repo
[queries](https://github.com/ionide/tree-sitter-fsharp/blame/main/queries).

The locals.scm is copied from the repo and the capture names are to follow
the standard names:
- Replace @local.definition.var @local.definition.function, and @local.definition.parameter with @local.definition
- Remove (#set! "definition.function.scope" "parent")

The highlights.scm is copied as well from the fsharp
treesitter repo, but modified here to match helix highlight scopes based
on my best guesstimates. The changes made:

- Remove @spell scopes
- Split @comment into @comment.line and @comment.block
- Replace @comment.documentation with @comment.block.documentation
- Replace @character.special with @special
- Replace @variable.member with @variable.other.member
- Replace @type.definition with @type
- Replace @function.member with @function.method
- Replace @module with @namespace
- Replace @constant.macro with @function.macro
- Replace @property with @variable.other.member
- Replace @variable.member with @variable.other.member
- Replace @variable.parameter.builtin with @variable.builtin
- Replace @function.call with @function
- Replace @number with @constant.numeric.integer and @constant.numeric.float
- Replace @boolean with @constant.builtin.boolean
- Replace @keyword.conditional with @keyword.control.conditional
- Replace @keyword.return with @keyword.control.return
- Replace @keyword.repeate with @keyword.control.repeat
- Replace @keyword.import with @keyword.control.import
- Replace @keyword.modifier with @keyword.storage.modifier
- Replace @keyword.type with @keyword.storage.type
- Replace @keyword.exception with @keyword.control.exception
- Replace @module.builtin with @namespace
4 months ago
麦芽糖 aaaafb8f5f
feat: add thrift hightlight (#11367) 4 months ago
Poliorcetics 68f495b023
just: Use updated grammar with recent language changes and correct highlighting (#11380) 4 months ago
Val Packett 2f60c21727
Add jq language support (#11393)
jq is a language for manipulating JSON data: https://jqlang.github.io/jq/
4 months ago
Heath Stewart d6431f41d9
Add TypeSpec support (#11412)
* Add TypeSpec support

Adds support for TypeSpec <https://typespec.io> in helix.

* Resolve PR comments

* Pull in LICENSE

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
4 months ago
bilabila c9c4452824
Support i3wm and sway config (#11424)
* Support i3wm and sway config

better syntax highlight and fix comment string

* typo
4 months ago
Raph ca47b3c140
Added `mesonlsp` as the default LSP for Meson (#11416)
* defaulted meson to JCWasmx86/mesonlsp

* generated docs for mesonlsp
4 months ago
Philip Giuliani b8c968fe47
Update Gleam tree sitter to support label shorthand syntax (#11427) 4 months ago
Erasin Wang b19551b11b
Updated Godot support (#11235)
- update gdscript highlights
- add godot-resource textobjects
4 months ago
Andrew Chou a4cfcff284
update language configuration for Tcl (#11236)
The primary executable that comes with Tcl is `tclsh`. Not really sure what `tclish` is, as I initially thought it was a typo. However, there seems to be references to it based on a quick search (e.g. [here](https://wiki.tcl-lang.org/page/Tclish) and [here](https://tclish.sourceforge.net/)), so maybe it's a valid executable that I just haven't been aware of. I was hesitant to replace it and instead opted to just add `tclsh`.
4 months ago
RoloEdits 6eae846197
feat(languages): update `just` grammar and queries (#11306)
* feat(languages): update `just` grammar and queries

Bump the

* refactor(syntax): inject shebang by id not name

---------

Co-authored-by: Trevor Gross <tmgross@umich.edu>
4 months ago
Jimmy Zelinskie 5e945c327f
languages: add mdx to markdown filetypes (#11122) 4 months ago
karei f34dca797c
Add support for `jjdescription` files (#11271) 4 months ago
1adept 9d21b8fa85
just module extension (#11286)
Co-authored-by: adept <adept@noreply.codeberg.org>
4 months ago
Tobias Hunger 748a9cf022
tree-sitter: Update SHA of parser fro the slint language (#11224)
There has been a new release with a few minor tweaks to the parser. The queries
are fine still.
4 months ago
Lukas Grassauer 35f1c2a55f
Update tree-sitter-todotxt (#11097)
Update to latest commit that allows any non-whitespace character for projects, and contexts.
4 months ago
Masanori Ogino ec0bdb3976
Update Hare grammar (#11130)
This change uses <https://git.sr.ht/~ecs/tree-sitter-hare/> that is
up-to-date and linked from the official documentation.
4 months ago
Antonin b0f3fe7556
Include .yml files in Helm chart templates (#11135) 4 months ago
Branch Vincent 2d1ac0f699
Add {pdm,uv}.lock, git/ignore, npmrc to languages (#11131) 4 months ago
baiyang1919813 649bd4501e
Add basedpyright langserver (#11121) 5 months ago
Charlie Moog fc97ecc3e3
Add hsc filetype to haskell (#11074) 5 months ago
Lucas @ StarkWare 0c6ffe192b
chore: update cairo tree sitter + queries (#11067) 5 months ago
Ashley Vaughn a982e5ce26
add ruler at 101 and text-width at 100 to lean in languages.toml (#10969) 5 months ago
Alejandro Gastón Alvarez b894cf087b
Add "jsonl" as filetype for JSON lang (#11004) 5 months ago
tingerrr 3706c0dc85
Add block comment tokens for typst (#10955) 5 months ago
blt-r 0edf60964d
Update tree-sitter-rust (#10973)
Update to latest commit on master to include fix for a bug that doesn't
allow spaces in the shebang line.
5 months ago
Lucas @ StarkWare 9123d3fbb8
feat(cairo): update tree-sitter grammar and queries (#10919)
* feat(cairo): update tree-sitter grammar and queries

* fix suggestions
5 months ago
Arturs Krumins aa1630a41a
Update Swift Grammar and Queries (#10802) 6 months ago
Zoey Hewll 44504b720b
add elisp support (#10644)
* add elisp support

* update queries for some constants
6 months ago
tingerrr 80e0e98e45
Add `py`, `hs`, `rs` and `typ` injection regexes (#10785)
* Add `py` as valid python injection regex

* Add `hs` and `rs` for `haskell` and `rust`

* Add `typ` injection regex for `typst`
6 months ago
Gaëtan Lehmann a801044152
update tree-sitter-earthfile to 0.5.3 (#10779) 6 months ago
Yorick Peterse f1c9580e4b
tree-sitter: update Inko grammar (#10805) 6 months ago
Dmitry Salin 889bbefeb3
Add support for Mojo (#10743)
* Add support for Mojo

* Update grammar

* Fix queries

* Fix docs

* Use inheritance for some files
6 months ago
Tobias Hunger 5fea7cd0cc
tree-sitter: Update slint grammar (#10749) 6 months ago
Chris 81d4cbc66e
Update Odin tree sitter grammar (#10698)
* Replace Odin grammar source

* Update Odin highlights

* Update Odin indents

* Update Odin injections
7 months ago
Ryan Roden-Corrent 0432d9cf14
lang(starlark): Add WORKSPACE glob. (#10713)
In addition to BUILD files, bazel repositories contain a WORKSPACE file,
which is also written in starlark.
See https://bazel.build/reference/be/workspace.
7 months ago
Yorick Peterse b437b8b0ee
Add support for Inko (#10656)
This adds formatting and Tree-sitter support for Inko
(https://inko-lang.org/).
7 months ago
Arthur D 295a9a95ce
feat: add support for gjs and gts (#9940) 7 months ago
Ashley Vaughn 61818996c6
remove ' and add ⟨⟩ in lean autopairs (#10688) 7 months ago
Erasin Wang 724a96abc8
Add pest support (#10616)
Support [pest-parser](https://github.com/pest-parser)

- [pest-language-server](https://github.com/pest-parser/pest-ide-tools)
- [tree-sitter-pest](https://github.com/pest-parser/tree-sitter-pest)

close #7878
7 months ago
Keir Lawson 31248d4e2f
Enable metals inlay hints (#10597) 7 months ago
Yoav Lavi 50c90cb47c
Add support for highlighting any `.*ignore` file (#10579) 7 months ago
Chris Sergienko 345e687573
feat: update bash grammar to latest tree-sitter-bash rev (#10526) 7 months ago
Blaž Hrastnik f06a166962 Add Move language support 7 months ago
Gaëtan Lehmann ab203b5f53
update earthfile grammar and highlight queries (#10489) 7 months ago
Jonathan Lebon 36ee9ba7d6
languages/rust: add `rust-script` and `cargo` shebangs (#10484)
The former is one of the more popular forks of the original idea:

https://rust-script.org/

The latter is an RFC for folding that functionality into cargo itself,
available on nightly:

https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#script
7 months ago