echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.45k stars 171 forks source link

mini.files: Keymap to open file in a split window #943

Closed mrjones2014 closed 1 month ago

mrjones2014 commented 1 month ago

Contributing guidelines

Module(s)

mini.files

Description

In mini.files, I'd like an option under mappings that, after mini.files window closes, splits the window before opening the selected buffer.

echasnovski commented 1 month ago

This was already suggested in #646 and #760. Following example for making a mapping that creates a split is the suggest approach here. Note, that examples only create a split and changes target window to be that split. Follow with actually opening a file the usual way (l or L by default).