stevearc / overseer.nvim

A task runner and job management plugin for Neovim
MIT License
1.18k stars 51 forks source link

How to change select multi parameters( TAB is no effect) #287

Open JefferyBoy opened 5 months ago

JefferyBoy commented 5 months ago

Neovim version (nvim -v)

0.8.0

Operating system/version

linux

Describe the bug

2024-04-24_16-44-31

my task:

local fileutil = require("utils.file")

return { name = "gradle run", params = { task = { type = "enum", name = "task name", choices = { "assemble", "assembleDebug", "assembleRelease" }, delimiter = " ", order = 1, optional = false, default = "assembleDebug", }, }, condition = { callback = function(opts) local found = vim.fs.find("gradlew", { upward = true, type = "file", path = opts.dir })[1] if not found then return false, "Not gradle project" end return true end, }, builder = function(params) return { cmd = { "./gradlew" }, args = { params.task }, components = { { "on_output_quickfix", set_diagnostics = true, open = true, }, "on_result_diagnostics", "default", }, } end, }

What is the severity of this bug?

minor (annoyance)

Steps To Reproduce

  1. edit ~/.config/nvim/lua/overseer/template/user/gradle_build.lua
  2. open a gradle project

Expected Behavior

select enum item easy

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

hungnguyen1503 commented 1 day ago

Hi @JefferyBoy , I have the same issue. Have you had any solution to fix it?