Open Tronikelis opened 1 month ago
Bumping this PR, I would also like these changes.
If anyone wants these changes already, I created a separate plugin that patches the lualine components and exports them https://github.com/Tronikelis/lualine-components.nvim
Hey, so when using oil file manager the branch is empty when viewing an oil buffer, this is because oil has its own path, now this is a small change to make it work, but I don't really like modifying globally the component like this, maybe this project should have some hooks or apis that the user could override, like
get_buffer_dir
?The same problem is with
filename
component and the fix is the same to use the oil api get_current_dir, so thats why I think having a global user editable api for directories would be a great optionhttps://github.com/nvim-lualine/lualine.nvim/issues/1077
https://github.com/nvim-lualine/lualine.nvim/issues/1077#issuecomment-2119754614