(local command vim.api.nvim_create_user_command)
(command "M"
(lambda [opts]
(let [args (table.concat opts.fargs " ")]
(vim.cmd.term (.. "man " args "| bat -p -l man"))
(vim.cmd.startinsert)))
{ :nargs "*"
:bar true })
(command "W"
(lambda [opts]
(vim.cmd.term (.. "w3m " (. opts.fargs 1)))
(vim.cmd.startinsert))
{ :nargs 1
:bar true })
(command "H"
(lambda [opts]
(vim.cmd (.. "tab h " (. opts.fargs 1)))
(. (require "wrapwin") :open-wrapwin))
{ :nargs 1
:complete "help" })
(command "VS"
(lambda []
(. (require "wrapwin") :open-wrapwin))
{ :nargs 0 })
nil