module Ribosome.Api.Normal where
import Ribosome.Host.Api.Effect (nvimCommand)
import Ribosome.Host.Effect.Rpc (Rpc)
import Exon (exon)
normalm ::
Member Rpc r =>
Text ->
Sem r ()
normalm :: forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
normalm Text
cmd =
Text -> Sem r ()
forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
nvimCommand [exon|normal #{cmd}|]
normal ::
Member Rpc r =>
Text ->
Sem r ()
normal :: forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
normal Text
cmd =
Text -> Sem r ()
forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
nvimCommand [exon|normal! #{cmd}|]