sbtvimquit.VimquitPlugin.scala Maven / Gradle / Ivy
The newest version!
package sbtvimquit
import sbt._
import Keys._
import sbt.internal.util.complete.Parser
object VimquitPlugin extends AutoPlugin {
import Parser._
override def trigger = allRequirements
lazy val quitParser: Parser[Unit] = (":q": Parser[String]) ^^^ (())
override def globalSettings = Seq(
commands += Command.arb[Unit](_ => quitParser) { (s: State, _) =>
"exit" :: s
}
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy