Comments (7)
@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.
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.
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.
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.
We'll stick with the signs as they are, and explain how to use nicer looking signs in the documentation later on.
from ale.
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.
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)
- ALE linting .tsx as .ts files when using Biome
- [Biome] Linter not usable
- Should/could ALE pass --no-fix argument to ruff when linting (to override project configuration)? HOT 5
- ALEHover text not appearing in floating preview HOT 1
- Cannot use ALE in MacVim when the file is opened via the right-click context menu or the File > Open dialog in MacVim HOT 2
- error loading shared lib: libicui18n.so.73 HOT 1
- json linting with jq doesn't report errors correctly
- On Windows 11, shell=pwsh/powershell continues breaking ALE lint HOT 1
- `write-good` plugin need make separate files that only have text
- cspell option “-c config.yaml” not work
- `sqlfluff` does not work in Neovim, throws an error when trying to lint an opened file HOT 1
- Signs cannot be customized HOT 5
- ALEFix with clangtidy not updating the buffer HOT 1
- clang++ command not getting correct include paths
- error highlights entire function
- Add support for pymarkdown
- Strange syntax highlighting behavior with ALE on Neovim HOT 1
- ALE ruff format shows error: "Unidentified byte: Loading .env environment variables..."
- ALE support linter group HOT 3
- Incorrect eslint project root when using nested node_modules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ale.