Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: direction = "float" not working with open_output #319

Open
scippio opened this issue Jun 28, 2024 · 0 comments
Open

bug: direction = "float" not working with open_output #319

scippio opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@scippio
Copy link

scippio commented Jun 28, 2024

Neovim version (nvim -v)

v0.9.5

Operating system/version

Archlinux

Describe the bug

I have this in my .nvim.lua file and want open task list at the right when task started.

require("overseer").register_template({
    name = "My project task",
    params = {},
    condition = {
        -- This makes the template only available in the current directory
        -- In case you :cd out later
        dir = vim.fn.getcwd(),
    },
    builder = function()
        return {
            cmd = { "echo" },
            args = { "Hello", "world" },
            components = {
                { "open_output", on_start = "always", direction = "float" },
                "default"
            }
        }
    end,
})

And this in setup()

overseer.setup({
			task_list = {
				direction = "right",
			...

But when Task start nothing is open. OverseerOpen float command works fine.

What is the severity of this bug?

minor (annoyance)

Steps To Reproduce

add .nvim.lua file and run task described above

Expected Behavior

open task list at the right (or other places defined in direction/setup) when task started

Minimal example file

No response

Minimal init.lua

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  { "stevearc/dressing.nvim", config = true },
  {
    "stevearc/overseer.nvim",
    config = function()
      require("overseer").setup({
        -- add your overseer config here
      })
    end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Additional context

No response

@scippio scippio added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant