diff --git a/.github/ISSUE_TEMPLATE/1-bug.yml b/.github/ISSUE_TEMPLATE/1-bug.yml new file mode 100644 index 0000000..42bf6e3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-bug.yml @@ -0,0 +1,52 @@ +# Filing through the API or `gh issue create`? Forms only apply on the web: +# write the body with each field's label below as a `### ` heading, in order. +name: Wrong or broken colors +description: A highlight group in the wrong color, unreadable, uncolored, or an error from the colorscheme. +labels: [bug] +body: + - type: markdown + attributes: + value: | + mistpine.nvim follows the [mistpine spec](https://github.com/mistpine/mistpine/blob/main/docs/spec.md). + A color that differs from the spec is a bug here; a spec color you'd like + changed belongs in [mistpine](https://github.com/mistpine/mistpine/issues/new/choose). + - type: textarea + id: what + attributes: + label: What's wrong + description: What you see, and what you expected (a spec token if you know it). + validations: + required: true + - type: input + id: groups + attributes: + label: Highlight groups + description: Put the cursor on it and run `:Inspect`. + placeholder: "@string.documentation.python, TelescopeSelection, BlinkCmpMenu" + - type: textarea + id: screenshot + attributes: + label: Screenshot + description: Drag an image here. + - type: textarea + id: repro + attributes: + label: Minimal config + description: A config that shows the problem with `nvim --clean -u repro.lua`, including your mistpine `setup()` options. + render: lua + - type: textarea + id: versions + attributes: + label: Versions + description: "`nvim --version` (first three lines), the mistpine.nvim commit (`:Lazy` shows it), the terminal or GUI, and the OS." + render: text + validations: + required: true + - type: checkboxes + id: checks + attributes: + label: Checks + options: + - label: I'm on the latest mistpine.nvim commit. + required: true + - label: It still happens without my `on_colors` and `on_highlights` overrides. diff --git a/.github/ISSUE_TEMPLATE/2-plugin.yml b/.github/ISSUE_TEMPLATE/2-plugin.yml new file mode 100644 index 0000000..4d65da2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2-plugin.yml @@ -0,0 +1,38 @@ +# Filing through the API or `gh issue create`? Forms only apply on the web: +# write the body with each field's label below as a `### ` heading, in order. +name: Support a plugin +description: Add highlight groups for a plugin mistpine.nvim doesn't style yet. +labels: [enhancement] +body: + - type: markdown + attributes: + value: | + Supported today: blink.cmp, bufferline.nvim, flash.nvim, gitsigns.nvim, + grug-far.nvim, incline.nvim, lazy.nvim, mason.nvim, mini.icons, noice.nvim, + render-markdown.nvim, snacks.nvim, telescope.nvim, trouble.nvim, + which-key.nvim and zen-mode.nvim. For a supported plugin with a wrong or + missing group, use **Wrong or broken colors**. + - type: input + id: plugin + attributes: + label: Plugin + description: Its repository URL. + placeholder: "https://github.com/folke/todo-comments.nvim" + validations: + required: true + - type: textarea + id: groups + attributes: + label: Highlight groups + description: The groups the plugin defines (its docs, or `:filter /^Prefix/ highlight`), and which ones look off today. + render: text + - type: textarea + id: screenshot + attributes: + label: Screenshot + description: How it looks with mistpine today. Drag an image here. + - type: textarea + id: notes + attributes: + label: Notes + description: Which spec roles fit (diagnostics, diff, search, menus) and anything unusual, such as hard-coded colors. diff --git a/.github/ISSUE_TEMPLATE/3-feature.yml b/.github/ISSUE_TEMPLATE/3-feature.yml new file mode 100644 index 0000000..9987f08 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/3-feature.yml @@ -0,0 +1,32 @@ +# Filing through the API or `gh issue create`? Forms only apply on the web: +# write the body with each field's label below as a `### ` heading, in order. +name: Feature or option +description: A new option, API or Neovim feature to support. +labels: [enhancement] +body: + - type: markdown + attributes: + value: | + mistpine is dark only, and its colors come from the spec, so new + variants or palettes are out of scope here. `on_colors` and + `on_highlights` cover most one-off changes. + - type: textarea + id: what + attributes: + label: What you'd like + description: The option or behavior, and how you'd use it. + validations: + required: true + - type: textarea + id: why + attributes: + label: Why + description: What you can't do today, and what you tried (including `on_colors` and `on_highlights`). + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: How the config would look. + render: lua diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..38fa07a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Change a palette color + url: https://github.com/mistpine/mistpine/issues/new?template=1-spec-change.yml + about: mistpine.nvim takes its colors from the mistpine spec. Propose palette changes there. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..cb0b4e4 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,30 @@ + + +## What and why + + + +## Checks + +- [ ] `make test` +- [ ] `make test-plugins` (if a plugin integration changed) +- [ ] `make lint` (stylua, Biome, tsc) +- [ ] `make sync` leaves `lua/mistpine/palette.lua` unchanged + +## Colors + +- [ ] Every color is a palette key or a spec blend; no new hex values +- [ ] Bold and italic follow the spec (bold functions, italic strings and comments) +- [ ] `palette.lua` is not edited by hand (color changes go to mistpine first) + +## Screenshots + +