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 preview only for directories #961

Closed sudo-tee closed 3 weeks ago

sudo-tee commented 3 weeks ago

Contributing guidelines

Module(s)

mini.files

Description

I would like to be able to have the preview but only for directory.

It would make navigating the tree easier and faster.

Although the functionality is somewhat already there, it also displays a preview for files which I find a bit distracting and it also clutters the screen.

It would be great to have 2 seperate config eg:

{
  windows = {
     file_preview = false,
     directory_preview = true,
     file_preview_width = 40,
     file_preview_height = 25,
     directory_preview = 25,
  }
}

By making it seperate config you could also change the size of the file preview seperately.

Thanks for your great plugins and awesome work

echasnovski commented 3 weeks ago

Thanks for the suggestion!

This is out of scope for 'mini.files', as it increases available config options and code complexity for already quite big 'mini.files' module.

Closing as not planned.