rust-tools.nvim icon indicating copy to clipboard operation
rust-tools.nvim copied to clipboard

Consider adding an executor for vimux

Open sbosnick opened this issue 3 years ago • 1 comments

It may be useful to add a third executor for the RustRunnables support that makes use of the preservim/vimux plugin for vim/tmux integration.

I have a version of this working locally (which is reproduced below). If this is a good fit for rust-tools.nvim I would be happy to prepare a pull request. If not then feel free to close this issue.

function M.execute_command(command, args, cwd)
  local full_command = utils.chain_commands({
    utils.make_command_from_args("cd", { cwd }),
    utils.make_command_from_args(command, args),
  })

  vim.fn.VimuxRunCommand(full_command)
end

sbosnick avatar Dec 18 '21 15:12 sbosnick

Feel free to PR!

simrat39 avatar Dec 18 '21 19:12 simrat39