echasnovski / mini.nvim

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

Open mini.starter when no files are open #933

Closed j0lol closed 4 months ago

j0lol commented 4 months ago

Contributing guidelines

Module(s)

starter

Description

Would make nvim feel more like a cohesive IDE imo :)

echasnovski commented 4 months ago

This is already the case with default value of config.autoopen. To achieve this, execute require('mini.starter').setup() during startup, i.e. not during lazy loading 'mini.starter' / 'mini.nvim'.

If you mean it should run open() when there are no present buffers for files, then I don't think it is a good idea. Mostly because this state is achieved either just after startup (already autoopens) or after manually removing all buffers (then this action was done explicitly to achieve this state).