martineausimon / nvim-lilypond-suite

Neovim plugin for writing LilyPond scores, with asynchronous make, midi/mp3 player, fast syntax highlighting, "hyphenation" function, and support for LaTex and Texinfo files
GNU General Public License v3.0
130 stars 11 forks source link

[FR] Auto-close player on completion #15

Closed kflak closed 1 year ago

kflak commented 1 year ago

Hi,

Is there a way to close the player automatically after it has reached the end of the file? I currently have it set up not to loop, so I get an exit code 0 when it finishes. Maybe it's possible to trap this somehow and add a hook to it? I don't know enough about the inner workings of the floating window to take a stab at this....

martineausimon commented 1 year ago

Hi ! Sorry for the slow response, I'm a bit busy these days ! It should work now : the player window should close when it finishes playing.

kflak commented 1 year ago

Awesome, thank you so much!