Open augustocdias opened 1 year ago
Thanks for making a proper issue. It's an upstream bug. You can follow https://github.com/neovim/neovim/issues/19464
Stumbled upon this issue. My workaround:
{
"filename",
path = 1,
fmt = function(filename)
-- Small attempt to workaround https://github.com/nvim-lualine/lualine.nvim/issues/872
if #filename > 80 then
filename = vim.fs.basename(filename)
end
if #filename > 80 then
return string.sub(filename, #filename - 80, #filename)
end
return filename
end,
},
If someone has the same issue while waiting for the upstream to be fixed.
Self Checks
How to reproduce the problem
Place a cursor on a block which the matching closing or opening is out of the viewport (ex:
{
and the matching}
is out of the viewport) and press%
Expected behaviour
No error shown and I can navigate to the matching block.
Actual behaviour
This error is shown:
Minimal config to reproduce the issue
minimal.lua: