You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This is a continuation of the issue brought up in #305 (comment). The problem has to do with the fact that the number column in the popup window is not formatted the same as in the user's statuscolumn, which may cause the line numbers in the popup to be misaligned. It also seems like the foldcolumn is not properly rendered.
Here's a minimal config to reproduce the issue. It sets a custom status column with right-aligned relative number/numbers and the sign-column on the right. More possible example configurations can be found in :help status-line.
repro.lua
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{ "catppuccin/nvim", name="catppuccin" },
{
"andymass/vim-matchup",
init=function()
vim.opt.relativenumber=truevim.opt.number=truevim.opt.signcolumn="yes"vim.g.matchup_matchparen_offscreen= { method="popup", fullwidth=1, syntax_hl=1 }
vim.o.statuscolumn="%=%{v:relnum?v:relnum:v:lnum}%s"end,
},
{
"lewis6991/gitsigns.nvim",
event= { "BufReadPre", "BufNewFile" },
opts= {},
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("catppuccin")
Describe the solution you'd like
It would be cool if the offscreen match popup window inherited the same properties of the statuscolumn if enabled, and to allow for an option to provide a custom string to be evaluated so that the user can choose to hide the foldcolumn and signcolumn in the offscreen matchpopup window if they wish.
Describe alternatives you've considered
The only alternative I can think of right now is to not use a statuscolumn as this also affects the statusline mode for offscreen matches as well.
Screenshots
Custom status column with right-aligned relative number/numbers and sign-column on the right
Comparison between foldcolumns
Actual line:
Matchparen popup:
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
This is a continuation of the issue brought up in #305 (comment). The problem has to do with the fact that the number column in the popup window is not formatted the same as in the user's statuscolumn, which may cause the line numbers in the popup to be misaligned. It also seems like the foldcolumn is not properly rendered.
Here's a minimal config to reproduce the issue. It sets a custom status column with right-aligned relative number/numbers and the sign-column on the right. More possible example configurations can be found in
:help status-line
.repro.lua
Describe the solution you'd like
It would be cool if the offscreen match popup window inherited the same properties of the statuscolumn if enabled, and to allow for an option to provide a custom string to be evaluated so that the user can choose to hide the foldcolumn and signcolumn in the offscreen matchpopup window if they wish.
Describe alternatives you've considered
The only alternative I can think of right now is to not use a statuscolumn as this also affects the statusline mode for offscreen matches as well.
Screenshots
Custom status column with right-aligned relative number/numbers and sign-column on the right
Comparison between foldcolumns
Actual line:
Matchparen popup:
The text was updated successfully, but these errors were encountered: