aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-05-05 11:00:16 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:41 +0200
commite8bfe271b0da136048cdf20128b758ec87318479 (patch)
tree7ff4f564acf75128647e4d9dfb6c3287623acdea /.github
parentfeat(parsers): update t32, query, markdown, markdown_inline, meson, hyprlang,... (diff)
downloadnvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar.gz
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar.bz2
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar.lz
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar.xz
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.tar.zst
nvim-treesitter-e8bfe271b0da136048cdf20128b758ec87318479.zip
docs: update to rewrite
This updates * README * CONTRIBUTING * the `:h nvim-treesitter` documentation to the current state of `main`. It also adds a pull request template for adding a new language.
Diffstat (limited to '.github')
-rw-r--r--.github/PULL_REQUEST_TEMPLATE/new_language.md45
-rw-r--r--.github/pull_request_template.md5
2 files changed, 50 insertions, 0 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE/new_language.md b/.github/PULL_REQUEST_TEMPLATE/new_language.md
new file mode 100644
index 000000000..0f814f0f0
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE/new_language.md
@@ -0,0 +1,45 @@
+<!--
+ Before proceeding, make sure you have read https://github.com/nvim-treesitter/nvim-treesitter/blob/main/CONTRIBUTING.md!
+ Make sure to fill out all fields and read the checklist at the end.
+-->
+
+# Name of language
+
+<!-- Link to an official description of the language -->
+https://...
+
+<details>
+<summary>Representative code sample</summary>
+```
+max. 50 lines
+```
+</details>
+
+## Parser repo
+
+https://github.com/...
+
+<details>
+<summary>Parsed tree for code sample</summary>
+```
+paste output of tree-sitter parse or :InspectTree here
+```
+</details>
+
+## Queries
+
+Source of queries: https://github.com/... (or "written from scratch")
+
+<details>
+<summary>Screenshots of code sample</summary>
+<!-- paste screenshot of code sample using provided queries here -->
+</details>
+
+<!--
+CHECKLIST: _Before_ submitting, make sure
+
+* `./scripts/install-parsers.lua <language>` works without warnings
+* `./scripts/install-parsers.lua --generate <language>` works without warnings
+* `make query` works without warning
+* `make docs` is run
+-->
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 000000000..1f5207d98
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,5 @@
+<!--
+ Before proceeding, make sure you have read https://github.com/nvim-treesitter/nvim-treesitter/blob/main/CONTRIBUTING.md!
+ If you are adding a new parser, use this link instead:
+ <https://github.com/nvim-treesitter/nvim-treesitter/compare/main...my-branch?quick_pull=1&template=new_language.md>
+-->