Giter VIP home page Giter VIP logo

Comments (3)

smile13241324 avatar smile13241324 commented on July 2, 2024

You are right, I am actually using evil-indent all the time except in lsp managed buffers where this is handled by the lsp entirely, so I haven't noticed yet.

Lets see how the other package performs.

from spacemacs.

smile13241324 avatar smile13241324 commented on July 2, 2024

Hmm this doesn't look like a drop in replacement different layers have different formatting functions in place so we cannot use the global config instead we have to configure this in more detail for our own, not to interfere with the existing infrastructure.

I may have a look into this when I find the time if nobody else wants to tackle this in the meantime.

from spacemacs.

smile13241324 avatar smile13241324 commented on July 2, 2024

I have had a look into apheleia unfortunately this is only a controller for formatters it does not provide concrete formatter implementations except some sample ones for php, js and go.

While such a system is nice I would not focus on modernizing it as all newer modes move to LSP servers anyway which handle the formatting on a much more efficient manner outside of emacs. Legacy modes can work with srefactor as long as they are maintained.

One of the big exceptions there is elisp, here however I have not seen a suitable formatter for this yet. For now I have added an additional binding for SPC m = = which will format the buffer using core functions which use evil-indent internally. This gives reasonable results.

Now all elisp buffers are formatted on save by default just like in go. This should also make reviewing code change easier.

If you have found a suitable external formatter for elisp feel free to open a PR or feature ticket for it, until we have one we are using the internal one.

from spacemacs.

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.