Giter Site home page Giter Site logo

Add powerline segment(s) about ale HOT 7 CLOSED

dense-analysis avatar dense-analysis commented on July 22, 2024
Add powerline segment(s)

from ale.

Comments (7)

neersighted avatar neersighted commented on July 22, 2024

Check #97, I have a API pending.

from ale.

neersighted avatar neersighted commented on July 22, 2024

Said API is ale#statusline#Count(buffer), which returns a pair [E, W] if there is data or 0 if there is no data.

That is, a 0 as in the plugin has not run and cannot determine if there are any errors, not 0 errors.

from ale.

s-ol avatar s-ol commented on July 22, 2024

@neersighted great, I will be watching that PR.
It would be great if there was another function that returns the type and message of the current warning/error if the cursor is on the same line (for replacing the echo right now).

from ale.

neersighted avatar neersighted commented on July 22, 2024

Sure, just factor out what you need from EchoCursorWarning into its own function, and make EchoCursorWarning call that. 😀

from ale.

s-ol avatar s-ol commented on July 22, 2024

@neersighted so i understand that as per #97 #Count() will always return a tuple with [0, 0] in the default state? (i don't need the information about startup, just to make sure I use it correctly)

from ale.

w0rp avatar w0rp commented on July 22, 2024

Yep, as of right now you get [0, 0] when before linters have been run, and again [0, 0] if linters have been run and no problems have been found.

from ale.

neersighted avatar neersighted commented on July 22, 2024

I think with the merge of #97 and an example of how to use it included in airline this is safe to close.

from ale.

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.