noice.nvim
noice.nvim copied to clipboard
bug:
Did you check docs and existing issues?
- [X] I have read all the noice.nvim docs
- [X] I have searched the existing issues of noice.nvim
- [X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.0
Operating system/version
Ubuntu 23.04 in WSL2
Describe the bug
I wanted to move my cmdline_popup and and the popupmenu down towards the middle of my screen. I have used the recipe for putting them together so I just changed the "rows" setting to be 20 higher.
The cmdline_popup is moving down just fine, but the popupmenu stays in the same location. As I understand it, these values are relative to the upper row of the editor.
Ideally I wanted to move it to the middle of the screen with the popupmenu below it (so basically 50% + 2rows). I can however not seem to find a way to do this at all.
Steps To Reproduce
just add these settings to the Noice setup and then :
views = {
cmdline_popup = {
position = {
row = 25,
col = "50%",
},
size = {
width = 60,
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 27,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
Expected Behavior
The cmdline_popup and popupmenu are both moved 20 rows down.
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