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: long_message_to_split and cmdline_output_to_split presets don't work when custom routes are defined #517

Closed
3 tasks done
Subjective opened this issue Jun 21, 2023 · 0 comments · Fixed by #521 or #639
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@Subjective
Copy link

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0-dev-546+g3bf887f6e

Operating system/version

MacOS 13.3

Describe the bug

When custom routes are defined in the setup table, the presets long_message_to_split and cmdline_output_to_split don't do anything even when enabled.

Steps To Reproduce

 {
    "folke/noice.nvim",
    event = "VeryLazy",
    opts = {
      routes = {}, -- when the user defines custom routes, the following presets no longer work
      presets = { long_message_to_split = true, cmdline_output_to_split = true },
    },
  },

Expected Behavior

I would expect the routes defined in long_message_to_split and cmdline_output_to_split to be appended to the routes entry in the user config setup table.

Repro

-- 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", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/noice.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@Subjective Subjective added the bug Something isn't working label Jun 21, 2023
@Subjective Subjective changed the title bug: long_message_to_split and cmdline_output_to_split presets bug: long_message_to_split and cmdline_output_to_split presets don't work when custom routes are defined Jun 21, 2023
@Subjective Subjective changed the title bug: long_message_to_split and cmdline_output_to_split presets don't work when custom routes are defined bug: long_message_to_split and cmdline_output_to_split presets don't work when custom routes are defined Jun 21, 2023
@folke folke closed this as completed in fea7f1c Jun 24, 2023
willothy pushed a commit to willothy/noice.nvim that referenced this issue Aug 19, 2023
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

Successfully merging a pull request may close this issue.

1 participant