|
| 1 | +name: Bug report |
| 2 | +description: Report a problem with nvim-tree |
| 3 | +labels: [bug] |
| 4 | +body: |
| 5 | + - type: markdown |
| 6 | + attributes: |
| 7 | + value: | |
| 8 | + Before reporting: search [existing issues](https://github.com/kyazdani42/nvim-tree.lua/issues) and make sure that nvim-tree is updated to the latest version. |
| 9 | + - type: textarea |
| 10 | + attributes: |
| 11 | + label: "Description" |
| 12 | + description: "A short description of the problem you are reporting." |
| 13 | + validations: |
| 14 | + required: true |
| 15 | + - type: textarea |
| 16 | + attributes: |
| 17 | + label: "Neovim version" |
| 18 | + description: "Output of `nvim --version`" |
| 19 | + render: markdown |
| 20 | + placeholder: | |
| 21 | + NVIM v0.6.1 |
| 22 | + Build type: Release |
| 23 | + LuaJIT 2.1.0-beta3 |
| 24 | + validations: |
| 25 | + required: true |
| 26 | + - type: input |
| 27 | + attributes: |
| 28 | + label: "Operating system and version" |
| 29 | + placeholder: "Linux 5.16.11-arch1-1, macOS 11.5, Windows 10" |
| 30 | + validations: |
| 31 | + required: true |
| 32 | + - type: input |
| 33 | + attributes: |
| 34 | + label: "nvim-tree version" |
| 35 | + description: "`cd <your-package-directory>/nvim-tree.lua ; git log --format='%h' -n 1`" |
| 36 | + placeholder: | |
| 37 | + nvim-tree branch, commit or tag number |
| 38 | + validations: |
| 39 | + required: true |
| 40 | + - type: textarea |
| 41 | + attributes: |
| 42 | + label: "Steps to reproduce" |
| 43 | + description: "Steps to reproduce using the minimal config provided below." |
| 44 | + placeholder: | |
| 45 | + 1. `nvim -nu /tmp/nvt-min.lua` |
| 46 | + 2. `:NvimTreeOpen` |
| 47 | + 3. ... |
| 48 | + validations: |
| 49 | + required: true |
| 50 | + - type: textarea |
| 51 | + attributes: |
| 52 | + label: "Expected behavior" |
| 53 | + description: "A description of the behavior you expected:" |
| 54 | + - type: textarea |
| 55 | + attributes: |
| 56 | + label: "Actual behavior" |
| 57 | + description: "Observed behavior (may optionally include images, videos or a screencast)." |
| 58 | + - type: textarea |
| 59 | + attributes: |
| 60 | + label: "Minimal config" |
| 61 | + description: "Minimal(!) configuration necessary to reproduce the issue, using the latest version. Save this as `/tmp/nvt-min.lua` and run using `nvim -nu /tmp/nvt-min.lua`. If _absolutely_ necessary, add plugins and modify the nvim-tree setup at the indicated lines." |
| 62 | + render: Lua |
| 63 | + value: | |
| 64 | + vim.cmd [[set runtimepath=$VIMRUNTIME]] |
| 65 | + vim.cmd [[set packpath=/tmp/nvt-min/site]] |
| 66 | + local package_root = '/tmp/nvt-min/site/pack' |
| 67 | + local install_path = package_root .. '/packer/start/packer.nvim' |
| 68 | + local function load_plugins() |
| 69 | + require('packer').startup { |
| 70 | + { |
| 71 | + 'wbthomason/packer.nvim', |
| 72 | + 'kyazdani42/nvim-tree.lua', |
| 73 | + 'kyazdani42/nvim-web-devicons', |
| 74 | + -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE |
| 75 | + }, |
| 76 | + config = { |
| 77 | + package_root = package_root, |
| 78 | + compile_path = install_path .. '/plugin/packer_compiled.lua', |
| 79 | + display = { non_interactive = true }, |
| 80 | + }, |
| 81 | + } |
| 82 | + end |
| 83 | + if vim.fn.isdirectory(install_path) == 0 then |
| 84 | + print("Installing nvim-tree and dependencies.") |
| 85 | + vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path } |
| 86 | + end |
| 87 | + load_plugins() |
| 88 | + require('packer').sync() |
| 89 | + vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]] |
| 90 | + vim.opt.termguicolors = true |
| 91 | + vim.opt.cursorline = true |
| 92 | +
|
| 93 | + -- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE |
| 94 | + _G.setup = function() |
| 95 | + vim.g.nvim_tree_indent_markers = 0 |
| 96 | + vim.g.nvim_tree_git_hl = 0 |
| 97 | + vim.g.nvim_tree_highlight_opened_files = 0 |
| 98 | + vim.g.nvim_tree_root_folder_modifier = ':~' |
| 99 | + vim.g.nvim_tree_add_trailing = 0 |
| 100 | + vim.g.nvim_tree_group_empty = 0 |
| 101 | + vim.g.nvim_tree_icon_padding = ' ' |
| 102 | + vim.g.nvim_tree_symlink_arrow = ' ➛ ' |
| 103 | + vim.g.nvim_tree_respect_buf_cwd = 0 |
| 104 | + vim.g.nvim_tree_create_in_closed_folder = 0 |
| 105 | + vim.g.nvim_tree_special_files = { ["Cargo.toml"] = true, Makefile = true, ["README.md"] = true, ["readme.md"] = true, } |
| 106 | + vim.g.nvim_tree_show_icons = { git = 1, folders = 1, files = 1, folder_arrows = 1 } |
| 107 | + require'nvim-tree'.setup { |
| 108 | + auto_close = false, |
| 109 | + auto_reload_on_write = true, |
| 110 | + disable_netrw = false, |
| 111 | + hide_root_folder = false, |
| 112 | + hijack_cursor = false, |
| 113 | + hijack_netrw = true, |
| 114 | + hijack_unnamed_buffer_when_opening = false, |
| 115 | + ignore_buffer_on_setup = false, |
| 116 | + open_on_setup = false, |
| 117 | + open_on_tab = false, |
| 118 | + sort_by = "name", |
| 119 | + update_cwd = false, |
| 120 | + hijack_directories = { |
| 121 | + enable = true, |
| 122 | + auto_open = true, |
| 123 | + }, |
| 124 | + update_focused_file = { |
| 125 | + enable = false, |
| 126 | + update_cwd = false, |
| 127 | + ignore_list = {} |
| 128 | + }, |
| 129 | + ignore_ft_on_setup = {}, |
| 130 | + system_open = { |
| 131 | + cmd = nil, |
| 132 | + args = {} |
| 133 | + }, |
| 134 | + diagnostics = { |
| 135 | + enable = false, |
| 136 | + show_on_dirs = false, |
| 137 | + icons = { |
| 138 | + hint = "", |
| 139 | + info = "", |
| 140 | + warning = "", |
| 141 | + error = "", |
| 142 | + } |
| 143 | + }, |
| 144 | + filters = { |
| 145 | + dotfiles = false, |
| 146 | + custom = {}, |
| 147 | + exclude = {} |
| 148 | + }, |
| 149 | + git = { |
| 150 | + enable = true, |
| 151 | + ignore = true, |
| 152 | + timeout = 400, |
| 153 | + }, |
| 154 | + actions = { |
| 155 | + change_dir = { |
| 156 | + enable = true, |
| 157 | + global = false, |
| 158 | + }, |
| 159 | + open_file = { |
| 160 | + quit_on_open = false, |
| 161 | + resize_window = false, |
| 162 | + window_picker = { |
| 163 | + enable = true, |
| 164 | + } |
| 165 | + } |
| 166 | + }, |
| 167 | + } |
| 168 | + end |
| 169 | + validations: |
| 170 | + required: true |
| 171 | + |
0 commit comments