Giter Site home page Giter Site logo

Comments (7)

natemccurdy avatar natemccurdy commented on July 22, 2024 28

@w0rp How does one use unicode characters for the warnings and errors? I've looked through the docs but can't find anything.

I've tried this, but I get an error that its an invalid sign text:

let g:ale_sign_error = '\u2718'

EDIT: I figured it out. I just needed to copy+paste the actual symbol. I also set the colors to be reversed.

let g:ale_sign_error = ''
let g:ale_sign_warning = ''
highlight ALEErrorSign ctermbg=NONE ctermfg=red
highlight ALEWarningSign ctermbg=NONE ctermfg=yellow

from ale.

w0rp avatar w0rp commented on July 22, 2024 2

Yeah, you use the actual symbol. If you were doing it in a Vim script for a project, you also probably need a script encoding line, which happens a few times in this project.

I have actually been thinking about this issue again. I do wonder if there's some way I could reliably detect which symbols will be rendered decently for 90% of people, and fall back on something else. I suppose I could make ALE detect which font you are using in combination with the encoding.

I might try to change the default symbols some day.

from ale.

KabbAmine avatar KabbAmine commented on July 22, 2024

Keep them by default, there are easy to differentiate as you said and work everywhere (No fancy unicode characters).

If the user wants to change them, there are global variables for that.

from ale.

w0rp avatar w0rp commented on July 22, 2024

I could keep them as they are. I'll leave this issue open for a little while longer to see if anyone else has any suggestions. If someone can suggest some characters which are more aesthetically pleasing which will work pretty much everywhere, let me know.

from ale.

w0rp avatar w0rp commented on July 22, 2024

We'll stick with the signs as they are, and explain how to use nicer looking signs in the documentation later on.

from ale.

kyla963 avatar kyla963 commented on July 22, 2024

Personally, I would love it if it looked a bit more like validator. I just find it a bit easier on the eye. However it doesn't work with nvim, and I'm not giving it up for anything now that I've made the switch :)

I think it was mentioned that there is a way to customize the aesthetics of Ale? How would I do that? For instance, using the dots instead of the arrows.

Otherwise, this is amazing, btw!

from ale.

w0rp avatar w0rp commented on July 22, 2024

Have a read through :help ale for extensive documentation, and look at the options above.

If there's an easy way to detect something like font support, or something like that, safely and quickly, then we could use some better default signs. What we have to avoid is using a sign that doesn't render properly in some cases by default. -- and >> are pretty much guaranteed to work in even the most primitive of terminals. Unicode symbols we can't trust too well.

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.