overseer.nvim icon indicating copy to clipboard operation
overseer.nvim copied to clipboard

bug: justfile not found

Open Jomik opened this issue 1 year ago • 0 comments

Neovim version (nvim -v)

v0.10.1

Operating system/version

MacOS 14.5

Describe the bug

When I run OverseerQuickAction it correctly finds the tasks on my backend/justfile but when I try to run it, it says justfile not found, this makes sense, as the command is run from cwd, and it does not look inside backend.

What is the severity of this bug?

minor (annoyance)

Steps To Reproduce

  1. Create justfile in sub directory
  2. Use OverseerQuickAction to select an action from the justfile
  3. Observe error

Expected Behavior

It runs just in the directory of the justfile it found the task in.

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

Jomik avatar Aug 29 '24 13:08 Jomik