Fix bufferline.nvim offsets
#3
folke
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
{ "akinsho/bufferline.nvim", opts = function() local Offset = require("bufferline.offset") if not Offset.edgy then local get = Offset.get Offset.get = function() if package.loaded.edgy then local layout = require("edgy.config").layout local ret = { left = "", left_size = 0, right = "", right_size = 0 } for _, pos in ipairs({ "left", "right" }) do local sb = layout[pos] if sb and #sb.wins > 0 then local title = " Sidebar" .. string.rep(" ", sb.bounds.width - 8) ret[pos] = "%#EdgyTitle#" .. title .. "%*" .. "%#WinSeparator#│%*" ret[pos .. "_size"] = sb.bounds.width end end ret.total_size = ret.left_size + ret.right_size if ret.total_size > 0 then return ret end end return get() end Offset.edgy = true end end, }Beta Was this translation helpful? Give feedback.
All reactions