galaxyline.nvim
galaxyline.nvim copied to clipboard
Additional providers
Would you be interested in starting a wiki page or some sort of additional readme in a docs folder with other providers that people can easily grab and use?
For example, here is a simple trailing whitespace function
local function trailing_whitespace()
local trail = vim.fn.search("\\s$", "nw")
if trail ~= 0 then
return " "
else
return nil
end
end
I'd like this too! It'd be easier than searching dotfiles for ideas 😁
In order to share the statusline created by everyone, I opened issue #12, just to share a custom provider, is the wiki page a good choice? If there are many providers, the page will look very long. Maybe it would be better to add some categories
#12 seems like a good fit. Like you said in the OP of that issue, links to the source of each submission are needed (if we want to cover the use case of a wiki)
Seems like trying to store them all in an issue would get pretty cumbersome quickly and make it hard to find anything. Somehow sorting them by categories is a good idea.
What about a completely separate contrib repository? Separate providers by folder, license it so that anyone can either grab code from the repo or install it as a plugin.
That would keep the number of providers down in this repo, while still allowing easy installation of additional sources. I know snippet plugins take this approach too