-
Notifications
You must be signed in to change notification settings - Fork 113
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
Dynamic numbers #97
Labels
enhancement
New feature or request
Comments
alpha's ui is just data, so you can just mutate the mru_cwd = {
type = "group",
val = {
{ type = "padding", val = 1 },
{ type = "text", val = mru_title, opts = { hl = "SpecialComment", shrink_margin = false } },
{ type = "padding", val = 1 },
{
type = "group",
val = function()
local x = mru(0, vim.fn.getcwd()) -- the first argument is the beginning index
return {x}
end,
opts = { shrink_margin = false },
},
},
}, but, this is a little too involved, so i think i'm going to try to make the buttons independent of the order of the mru sections |
ok, it should behave the way you expect as of c4a3b23 |
nvm, this caused some nasty bug. i'll investigate later 534a86b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to change a layout of elements in my config, so I did the following:
I swapped
mru_cwd
andmru
, because usually the files relevant for the current directory are more important. (Maybe it could be the default?)However, the numbers didn't change, so I get 10, 1, 2, 3...
mru_cwd
beforemru
would make sense for a lot of people, so it could be made a default?PS. Thanks for a nice plugin!
The text was updated successfully, but these errors were encountered: