Contributing guidelines
Module(s)
mini.clue, mini.files
Neovim version
0.13 (!at least latest Nightly build!)
Description
When closing mini.files after :edit <dir> clues don't work when there is no alternate file.
Expected: if the target buffer is listed, mini.clues always attaches after closing the default explorer.
EDIT: The same behavior can be observed when 'mini.starter' is included.
Reproduction
-
Create separate 'nvim-repro' config directory:
- '~/.config/nvim-repro/' on Unix
- '~/AppData/Local/nvim-repro/' on Windows
-
Inside 'nvim-repro' directory create a file named 'init.lua'.
Populate it with the following content:
vim.pack.add({ 'https://github.com/nvim-mini/mini.nvim' })
local minimisc = require('mini.misc')
local later = function(f) minimisc.safely('later', f) end
vim.g.mapleader = ' '
require('mini.files').setup()
later(
function()
require('mini.clue').setup({
clues = {
{ mode = 'n', keys = '<Leader>e', desc = '+Explore/Edit' },
},
triggers = {
{ mode = { 'n', 'x' }, keys = '<Leader>' },
},
})
end
)
-
Run NVIM_APPNAME=nvim-repro nvim (i.e. execute nvim with NVIM_APPNAME environment variable set to "nvim-repro").
Wait for all dependencies to install.
-
Steps
- Open nvim
- Press leader and note that the clue activates
- Type
:edit .
- Type
q
- Press leader and note that the clue does not activate
What to do after reporting an issue
After reporting the issue, it is safe (and even recommended for cleaner possible future bug reports) to remove 'nvim-repro' config from the system:
- Delete config directory ('~/.config/nvim-repro' on Unix).
- Delete data directory ('~/.local/share/nvim-repro' on Unix).
- Delete state directory ('~/.local/state/nvim-repro' on Unix).
Contributing guidelines
mainbranchModule(s)
mini.clue, mini.files
Neovim version
0.13 (!at least latest Nightly build!)
Description
When closing mini.files after
:edit <dir>clues don't work when there is no alternate file.Expected: if the target buffer is listed,
mini.cluesalways attaches after closing the default explorer.EDIT: The same behavior can be observed when 'mini.starter' is included.
Reproduction
Create separate 'nvim-repro' config directory:
Inside 'nvim-repro' directory create a file named 'init.lua'.
Populate it with the following content:
Run
NVIM_APPNAME=nvim-repro nvim(i.e. executenvimwithNVIM_APPNAMEenvironment variable set to "nvim-repro").Wait for all dependencies to install.
Steps
:edit .qWhat to do after reporting an issue
After reporting the issue, it is safe (and even recommended for cleaner possible future bug reports) to remove 'nvim-repro' config from the system: