Pretty, responsive and smooth defaults for a sane ALE, gets you started in 30 seconds
:PlugInstall
sensible defaults for ALE and enjoy an intuitive asynchronous linter out of the box.
First time, I installed ALE, I uninstalled it right away. ALE is mighty but its real power is hidden behind subpar defaults and a unintuitive UI. Just few settings are needed to get this thing rolling but it took me a day of crawling through help files and Github issues to find the right ones. Then, I had to clutter my .vimrc/init.vim with ALE config lines.
It's ok to spend time configuring your editor but your linter? Don't waste time like I did and use sane defaults from the first second. Introducing ALE SENSIBLE:
No more broken colorthemes, no dull grey sign coulmn/gutter anymore, ALE SENSIBLE works with any colortheme (dark and light ones). Subtle, non-obtrusive, well-balanced highlights signal errors exactly where they are keeping the gutter free for git tools and markers.
Experience a butter-smooth intuitive UI out of the box, PlugInstall and code. Set sensible defaults for ALE without reading bulky docs, a 44Kb README 😬 or tons of help files. This README, you're reading now, is just a mere 5Kb and you won't need more, tbh you just need the install infos below, the rest is content marketing. Don't waste time with a linter's setup and docs. It's. just. a. linter. Move on, keep coding, create stuff, play Fortnite but do not fix your linter, it should be the way around.
:ALEToggle
is not enoughLinters are overrated: Actually most of us are less productive with linters than without because of 'configuration porn', finding right settings, getting the linter fast, fixing wrong linter warnings or testing different linting engines for days. Only because ALE is asynchronous doesn't make it less distracting.
No more half-baken ALE, no more time-wasting, just add one line.
Add
Plug 'desmap/ale-sensible' | Plug 'w0rp/ale'
to your .vimrc/init.vim, restart Vim/Neovim and run :PlugInstall
in your .vimrc/init.vim file.
Add
Plugin 'desmap/ale-sensible' | Plugin 'w0rp/ale'
to your .vimrc/init.vim, restart Vim/Neovim and run :PlugInstall
in your .vimrc/init.vim file.
If you have already a line with 'w0rp/ale'
, remove this line (because we have to make sure that some of the new overriding configs load before ALE loads, some ALE oddity, hence the order in the install lines above).
Install your desired linter/fixer engines, e.g. for prettified JavaScript linting Prettier and Standard => npm i -D prettier standard
(don't mix local and global installs) and ALE will find and support them all. To set fixers, e.g. first Prettier, second Standard JS, add let g:ale_fixers = ['prettier', 'standard']
to your .vimrc/init.vim. To execute them, run :ALEFix
and if you like it map it to some key. FYI, a linter warns, a fixer fixes. This should be enough for a quick start. Further options/command/supported linters => :help ale
but remember, you should rather be coding than reading a linter's help file. Life is too short and coding is more fun. 😉
Still think some sensible defaults are missing? Open a pull request!
You like a good looking editor? Checkout https://github.com/desmap/slick