Skip to content

haolian9/barrier.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

a dirty but effecient way to abort :qa/:q

why?

i think when there are processes created by uv.spawn(detached = false), nvim should not allow :qa/:q. so i figured out this workaround.

especially for a daemonized music player.

prerequisites

  • haolian9/infra.nvim
  • nvim 0.9.*

usage

  • .acquire/release(token) # the token is an arbitrary but unique string
  • .tokens() # returning tokens being held