Skip to content

Request: Support passing some starting command when opening the terminal #39

@asadzman

Description

@asadzman

In my config , I have something like this.

  -- :T <command>  -> Opens in a horizontal split at the bottom
  vim.api.nvim_create_user_command("T", function()
  vim.cmd ":sp term://zsh"
  vim.cmd "startinsert"
end, {})

vim.api.nvim_create_user_command("VT", function()
  vim.cmd ":vsp term://zsh"
  vim.cmd "startinsert"
end, {})

I would like to emulate something like this with better term

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions