diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-15 16:11:09 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 15:52:24 +0100 |
| commit | 000923ccfcf48d5bfcea382b47d6edf47d7ce4e1 (patch) | |
| tree | a8a782916e91369ceddeb49b3e2b6d6b067bc670 /.github/ISSUE_TEMPLATE | |
| parent | docs(readme): make custom parser example more explicit about options (diff) | |
| download | nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar.gz nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar.bz2 nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar.lz nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar.xz nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.tar.zst nvim-treesitter-000923ccfcf48d5bfcea382b47d6edf47d7ce4e1.zip | |
docs: add issue template for highlighting issues
Diffstat (limited to '.github/ISSUE_TEMPLATE')
| -rw-r--r-- | .github/ISSUE_TEMPLATE/highlighting_issue.yml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/highlighting_issue.yml b/.github/ISSUE_TEMPLATE/highlighting_issue.yml new file mode 100644 index 000000000..95919f5af --- /dev/null +++ b/.github/ISSUE_TEMPLATE/highlighting_issue.yml @@ -0,0 +1,100 @@ +name: Highlighting issue +description: Missing or incorrect highlights or you want to change the way something is highlighted +labels: [ highlights ] + +body: + - type: markdown + attributes: + value: | + # Before reporting + Please do the following steps before reporting an issue. + - I have updated my neovim version to latest _master_ + - I have updated my plugin to the latest version + - I have run `:TSUpdate` + - I have inspected the syntax tree using https://github.com/nvim-treesitter/playground and made sure + that no `ERROR` nodes are in the syntax tree. nvim-treesitter can not guarantee correct highlighting in the + presence or `ERROR`s. Please report the bug directly corresponding parser's repository in case you see + `ERROR` in the syntax tree. You can find all repository URLs in our REAMDE.md + - I have used `:TSHighlightCapturesUnderCursor` from https://github.com/nvim-treesitter/playground to inspect + what highlight groups is nvim-treesitter is using and that no `:h syntax` highlighting is interfering. + + - type: textarea + attributes: + label: Describe the highlighting problem + description: A clear and concise description of what should be highlighted in a different way. + validations: + required: true + + - type: textarea + attributes: + label: Example snippet that causes the problem + description: Please provide an example snippet in plain text that causes the problem + validations: + required: true + + - type: textarea + attributes: + label: Tree-sitter parsing result + description: | + Please provide the output of `:TSPlaygroundToggle` from https://github.com/nvim-treesitter/playground + (screenshot or plain text) with the following options enabled (pressing the key): + - `I` (name of the parsed language) + - `t` (toggle injected languages) + - `a` (show anonymous nodes) + placeholder: | + This should look somehow like this: + ``` + preproc_ifdef [0, 0] - [4, 6] cpp + "#ifdef" [0, 0] - [0, 6] cpp + name: identifier [0, 7] - [0, 17] cpp + preproc_def [1, 0] - [2, 0] cpp + "#define" [1, 0] - [1, 7] cpp + name: identifier [1, 8] - [1, 16] cpp + value: preproc_arg [1, 16] - [1, 27] cpp + "\n" [1, 27] - [2, 0] cpp + alternative: preproc_else [2, 0] - [4, 0] cpp + "#else" [2, 0] - [2, 5] cpp + preproc_def [3, 0] - [4, 0] cpp + "#define" [3, 0] - [3, 7] cpp + name: identifier [3, 8] - [3, 16] cpp + value: preproc_arg [3, 16] - [3, 29] cpp + ``` + validations: + required: true + + - type: textarea + attributes: + label: Example screenshot + description: | + Please provide a screenshot of the current highlighting. Please also tell us the `:h colorscheme` you are using + and how to install it. If applicable, you can also upload a screenshot with the contents of + `:TSHighlightCapturesUnderCursor': + validations: + required: true + + - type: textarea + attributes: + label: Expected behavior + description: | + A clear and concise description of what you expect to be changed. You can provide screenshot of + other editors or traditional Vim highlighting that don't show this problem or show a screenshot how + nvim-treesitter highlighting would look like when a problematic query would be removed/altered. + + - type: textarea + attributes: + label: Output of `:checkhealth nvim-treesitter` + render: markdown + validations: + required: true + + - type: textarea + attributes: + label: Output of `nvim --version` + render: text + validations: + required: true + + - type: textarea + attributes: + label: Additional context + description: Add any context about the problem here. |
