Shatur / neovim-session-manager

A simple wrapper around :mksession.
GNU General Public License v3.0
510 stars 52 forks source link

added silent option in utils.get_sessions #119

Closed zhengrc19 closed 4 months ago

zhengrc19 commented 4 months ago

Trying to solve #118.

Added a silent option to session_manager.utils.get_sessions which will suppress the print messages and notifications.

Justification The scan_dir function used in utils.lua:L105 already supports a silent option to pass in for silence. Adding an option in get_sessions simply passes the option to scan_dir and at the same time is applied to the function itself.

This will not affect the behavior of get_sessions in other places as well because the opts argument is totally optional.

Shatur commented 4 months ago

Could you apply formatting?