Replies: 1 comment
-
Thanks for the suggestion. This won't be a part of 'mini.files' because buffers there are also meant to be edited inside Insert or Visual mode. Hence Creating own buffer-local mapping is a suggested approach here. The recommended approach is to follow an example from help and use dedicated 'mini.files' events. With something like this: vim.api.nvim_create_autocmd('User', {
pattern = 'MiniFilesBufferCreate',
callback = function(args)
vim.keymap.set('n', '<Esc>', function() MiniFiles.close() end, { buffer = args.data.buf_id, desc = 'Close' })
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
mini.files
, I had the 'problem', that I wanted to exit with<ESC>
andq
. I managed to have this behaviour with the following configuration. It would be a nice feature to have this as an option inside mini.files. When I am not alone, I could try to implement it.Beta Was this translation helpful? Give feedback.
All reactions