|
| 1 | +name: Bug Report |
| 2 | +description: File a bug/issue |
| 3 | +title: "bug: " |
| 4 | +labels: [bug] |
| 5 | +body: |
| 6 | + - type: markdown |
| 7 | + attributes: |
| 8 | + value: | |
| 9 | + Before reporting a bug, make sure to search [existing issues](https://github.com/stevearc/conform.nvim/issues) |
| 10 | + - type: input |
| 11 | + attributes: |
| 12 | + label: "Neovim version (nvim -v)" |
| 13 | + placeholder: "0.8.0 commit db1b0ee3b30f" |
| 14 | + validations: |
| 15 | + required: true |
| 16 | + - type: input |
| 17 | + attributes: |
| 18 | + label: "Operating system/version" |
| 19 | + placeholder: "MacOS 11.5" |
| 20 | + validations: |
| 21 | + required: true |
| 22 | + - type: textarea |
| 23 | + attributes: |
| 24 | + label: "Output of :checkhealth conform" |
| 25 | + validations: |
| 26 | + required: true |
| 27 | + - type: textarea |
| 28 | + attributes: |
| 29 | + label: Describe the bug |
| 30 | + description: A clear and concise description of what the bug is. |
| 31 | + validations: |
| 32 | + required: true |
| 33 | + - type: textarea |
| 34 | + attributes: |
| 35 | + label: Steps To Reproduce |
| 36 | + description: Steps to reproduce the behavior. |
| 37 | + placeholder: | |
| 38 | + 1. nvim -u repro.lua |
| 39 | + 2. |
| 40 | + 3. |
| 41 | + validations: |
| 42 | + required: true |
| 43 | + - type: textarea |
| 44 | + attributes: |
| 45 | + label: Expected Behavior |
| 46 | + description: A concise description of what you expected to happen. |
| 47 | + validations: |
| 48 | + required: true |
| 49 | + - type: textarea |
| 50 | + attributes: |
| 51 | + label: Minimal example file |
| 52 | + description: A small example file you are editing that produces the issue |
| 53 | + validations: |
| 54 | + required: false |
| 55 | + - type: textarea |
| 56 | + attributes: |
| 57 | + label: Minimal init.lua |
| 58 | + description: |
| 59 | + Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua` |
| 60 | + This uses lazy.nvim (a plugin manager). |
| 61 | + value: | |
| 62 | + -- DO NOT change the paths and don't remove the colorscheme |
| 63 | + local root = vim.fn.fnamemodify("./.repro", ":p") |
| 64 | +
|
| 65 | + -- set stdpaths to use .repro |
| 66 | + for _, name in ipairs({ "config", "data", "state", "cache" }) do |
| 67 | + vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name |
| 68 | + end |
| 69 | +
|
| 70 | + -- bootstrap lazy |
| 71 | + local lazypath = root .. "/plugins/lazy.nvim" |
| 72 | + if not vim.loop.fs_stat(lazypath) then |
| 73 | + vim.fn.system({ |
| 74 | + "git", |
| 75 | + "clone", |
| 76 | + "--filter=blob:none", |
| 77 | + "--single-branch", |
| 78 | + "https://github.com/folke/lazy.nvim.git", |
| 79 | + lazypath, |
| 80 | + }) |
| 81 | + end |
| 82 | + vim.opt.runtimepath:prepend(lazypath) |
| 83 | +
|
| 84 | + -- install plugins |
| 85 | + local plugins = { |
| 86 | + "folke/tokyonight.nvim", |
| 87 | + { |
| 88 | + "stevearc/conform.nvim", |
| 89 | + config = function() |
| 90 | + require("conform").setup({ |
| 91 | + log_level = vim.log.levels.DEBUG, |
| 92 | + -- add your config here |
| 93 | + }) |
| 94 | + end, |
| 95 | + }, |
| 96 | + -- add any other plugins here |
| 97 | + } |
| 98 | + require("lazy").setup(plugins, { |
| 99 | + root = root .. "/plugins", |
| 100 | + }) |
| 101 | +
|
| 102 | + vim.cmd.colorscheme("tokyonight") |
| 103 | + -- add anything else here |
| 104 | + render: Lua |
| 105 | + validations: |
| 106 | + required: false |
| 107 | + - type: textarea |
| 108 | + attributes: |
| 109 | + label: Additional context |
| 110 | + description: Any additional information or screenshots you would like to provide |
| 111 | + validations: |
| 112 | + required: false |
0 commit comments