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

Toggleterm executor opens new tab instead of rewriting existing one

Open daniilrozanov opened this issue 10 months ago • 0 comments

My config is

return {
  "Civitasv/cmake-tools.nvim",
  config = function()
    require("cmake-tools").setup {
      cmake_executor = {
        name = "toggleterm",
        opts = {
          direction = "tab", -- 'vertical' | 'horizontal' | 'tab' | 'float'
          close_on_exit = false, -- whether close the terminal when exit
          auto_scroll = true, -- whether auto scroll to the bottom
        },
      },
    }
  end,
}

If i rerun CMakeGenerate, it creates new tab. I am not sure this is optimal behaviour. Can it just clear existing one and write cmake output into it.

Following is more feature request, than bug, but it seems logical to have one toggleterm output per each preset\variant\profile.

daniilrozanov avatar Apr 14 '24 23:04 daniilrozanov