Skip to content
Discussion options

You must be logged in to vote

Hello @csswright,

Thanks for the questions!

But there's no mappings bound to g in the mini.files buffer...

There is, g? itself

If I have general mappings: ..., ... they are not affected by timeoutlen and the y/Y can be pressed at any time after g is pressed.

I think they are affected by timeoutlen:

vim.pack.add({ 'https://github.com/nvim-mini/mini.nvim' })

require('mini.files').setup()

-- The default timeoutlen is 1000ms
vim.keymap.set('n', 'gy', function() vim.notify('gy') end)
vim.keymap.set('n', 'gY', function() vim.notify('gY') end)

If I run nvim with only the code above, press g, wait for more than a second and press y, nothing happens. EDIT: As expected...

I would like to us…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@echasnovski
Comment options

Answer selected by echasnovski
Comment options

You must be logged in to vote
1 reply
@csswright
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.files
3 participants