GithubHelp home page GithubHelp logo

External plugin templates about lush.nvim HOT 7 OPEN

rktjmp avatar rktjmp commented on June 12, 2024
External plugin templates

from lush.nvim.

Comments (7)

rktjmp avatar rktjmp commented on June 12, 2024

I do not think these files belong in the core lush project because:

  1. They'll actually end up pretty hidden away for people who want to find them ("just cp .local/nvim/site/packer/compiled/lush.nvim/... ..." bleh)

  2. They might end up with frequent changes or "upstream plugin changed" patches which will clutter lush's mainline git log.

I think they either go into:

I don't think I mind hosting a starter/helper repo, probably mostly just a matter of deciding on a format and writing a readme on what they are and how to use them.

@kunzaatko

from lush.nvim.

kunzaatko avatar kunzaatko commented on June 12, 2024

Maybe they could be added as a submodule to the https://github.com/rktjmp/lush-template.

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024

Isn't that just including them directly but with extra steps?

At any rate. I think they should by default be:

  • one rule per line
  • commented out

So someone can grab the file and just update whatever parts they need without clearing any existing highlight links setup by the plugins.

How/where are you generating these from?

from lush.nvim.

kunzaatko avatar kunzaatko commented on June 12, 2024

Isn't that just including them directly but with extra steps?

I think that i order to download the submodules, you have to have write git submodule update to fetch them. That makes it opt-in rather then opt-out...

  • one rule per line
  • commented out

Sure, that is sensible.

How/where are you generating these from?

I just grabbed some big colourschemes, concatenated them, sorted them, filtered them and then edited the result with some vim macros. This inherently means, that the list of groups is not necessarily exhaustive...

I will make a private repo and invite you. Then, when it gets stable and we figure out the specific layout, we can make it public and figure out where to put it (or if I should transfer ownership to you or something)...

from lush.nvim.

kunzaatko avatar kunzaatko commented on June 12, 2024

You can look at the new repo I created. It should work with the new extends/with API hopefully. @rktjmp

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024

Just thinking out loud,

the starter template could actually have multiple branches by default

  • main/master/slim/default -> whats there now
  • light_dark -> light dark variant template
  • plugins -> has the plugins

You could probably start main then just merge in what you want git merge light_dark git merge plugins.

What I want to avoid is someone cloning down that repo, seeing 1000 files and thinking Lush is really heavy and complex when it really isn't.

from lush.nvim.

kunzaatko avatar kunzaatko commented on June 12, 2024

That seems reasonable. I think that it should also be emphasized in the README that the plugins are really templates and there is no need to implement a lot of them... So the template should then be in one repo not two as we agreed upon before...

from lush.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.