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

Adding floating window support

Open Freyskeyd opened this issue 3 years ago • 2 comments

This PR aims to add the floating window support for terminal actions (like RustDebuggables, RustRunnables and so on).

The floating window can be configured:

local config = {
  ...
  window = {
    width = 0.9, -- width ratio
    height = 0.9, -- height ratio
    max_width = 200, -- max width of the terminal window
    max_height = 60, -- max height of the terminal window
    border = "single", -- Border style for the terminal window (see `:h nvim_open_win`)
    floating = false, -- Define if the terminal window should be floating or not (disabled by default)
  }
}

Feel free to suggest modifications :)

Signed-off-by: Freyskeyd [email protected]

Freyskeyd avatar May 06 '22 19:05 Freyskeyd

Looks good, although wondering why not add an executor for something like toggleterm?

simrat39 avatar May 12 '22 05:05 simrat39

I just wanted to keep the dependencies free of another component that can be more heavy than just a little configuration :)

But I can update the PR if needed.

Freyskeyd avatar May 12 '22 05:05 Freyskeyd