38
votes
ale linter + eslint: Jump to next error
ALE has many commands that can navigate linting errors, and :ALENext works great for this operation. By default, ALE maps no bindings, I assume to allow for non-clashing customization.
In your ~/....
15
votes
ale linter + eslint: Jump to next error
You can easily move between errors by adding some key bindings to ale's <Plug> mappings (see :h <Plug>).
In this example use Ctrl+j to go to next error and Ctrl+k to go to the previous ...
7
votes
Accepted
Is it possible to disable the column on the left that is created by ALE?
Ralf mentions in the comments disabling ALE's sign column with
let g:ale_set_signs = 0
but you can also disable signs entirely with
set signcolumn=no
or have them in the number column with
set ...
5
votes
Enabling rubocop linter the right way
Based on :help rubocop, I would do let g:ale_ruby_rubocop_executable = 'bundle' in your config somewhere:
g:ale_ruby_rubocop_executable *g:ale_ruby_rubocop_executable*
...
5
votes
Accepted
How to get rid of inline linting errors?
Found it. Turns out it was not Ale doing it, but rather LanguageClient-neovim. The setting to turn it off is
let g:LanguageClient_useVirtualText = 0
5
votes
Accepted
ALE Linter is available but not enabled
I just found out that only flake8, mypy and pylint are enabled by default. I was trying to find out before but couldn't until someone pointed to
https://github.com/w0rp/ale/blob/master/doc/ale.txt#...
5
votes
Accepted
ALE Error and warning highlighting gets disabled when termguicolors is enabled
As you can read from :h 'termguicolors':
'termguicolors' 'tgc' boolean (default off)
global
Enables 24-bit RGB color in the TUI. Uses "gui" :highlight
attributes instead of "...
5
votes
How to break-up gutter fights?
Vim currently supports assigning sign priorities (https://vimhelp.org/sign.txt.html#sign-priority). The plugins placing the signs need to use the newer sign APIs.
4
votes
Accepted
Installed Ale linter using Pathogen, but none of the commands are working
The ALE plug-in requires Vim 8 or NeoVim 0.2.0+.
If you open a file in the Vim command-line with Ale loaded (vim /path/to/file.py or similar), it will produce an error like the one below:
ALE requires ...
4
votes
Accepted
How to configure ALE to enable autoformatting with elm-format?
You have to enable the feature of automatically formatting on save. This can be done by using :h autocmd, or with the global variable ale provides which enables it. The latter is much simpler and thus ...
4
votes
Accepted
How do I automatically open/close location or quickfix lists when they are populated by ALE?
I would try the following two options:
let g:ale_open_list = 1
let g:ale_keep_list_window_open = 0
3
votes
Accepted
my ALE linter is not working for python - shows only style errors
Well, bandit and mypy are not found, so not run at all.
flake8, pycodestyle, and pylint run. Flake8 and Pylint don't have output, and the style stuff is from pycodestyle.
If you want a more "...
3
votes
Accepted
ALE fails to lint or autofix, (executable check - failure)
Two issues:
let g:ale_lint_on_insert_leave doesn’t have an assignment, so vim tries to display the value (which is unset, so the variable doesn’t exist). Add = {val} where {val} is whatever you want ...
3
votes
Accepted
Is there a way to specify a default eslint configuration file when using ALE plugin of Vim?
From the eslint documentation we can read
Note: If you have a personal configuration file in your home directory (~/.eslintrc), it will only be used if no other configuration files are found. Since a ...
3
votes
ALE Linter is available but not enabled
One thing you should be aware of: flake8 invokes pycodestyle and pyflakes. So configuring ale to run flake8 and either of those two will lead to duplicate warnings:
https://github.com/dense-analysis/...
3
votes
Accepted
Cannot find implementation or library stub for module named "flask"
As we sussed out in the comments, this is from ALE+mypy, which needs to be installed in the virtual-env of the project.
Why? I'm not 100% sure, but I suspect mypy is simply ignorant of virtual-...
3
votes
Accepted
ALE remove permanent echo on problem line
You can change g:ale_virtualtext_cursor:
let g:ale_virtualtext_cursor = 1
More information with: :help g:ale_virtualtext_cursor
3
votes
Accepted
How do I disable snake_case naming style warning in ALE?
Fun fact: ALE doesn't check your code. ALE doesn't produce any warnings.
What ALE does do, it runs code checkers that do the actual code checking and aggregates their output. Like that co-worker you ...
2
votes
quickfix window and location list open at the same time causes weird resize
Unfortunately there is no easy way to fix this at the moment, the OP has opened a vim-go issue and we agree that this is something vim-go can do better. Now we just need someone to spend time fixing ...
2
votes
How to break-up gutter fights?
Here's the answer I found for Neovim.
First, Neovim will display up to nine signs in the gutter by default, so plugins don't have to fight over sharing just one or two columns.
Second, there is sign-...
2
votes
Markdown toc disappears on save since I installed ALE linter
In the absence of a more elegant fix, I disabled ALE for markdown files as explained in ALE issue 371, by adding this to my ~/.vimrc:
" Disable ale for some file extensions
let g:...
2
votes
Accepted
vimrc for ale is creating confusion: is my augroup wrong?
In your ALEInfo output, it shows that ALE is using the variables from your latex autogroup. (Line 38: let b:ale_fixers = ['latexindent', 'remove_trailing_lines', 'trim_whitespace'])
Each of your ...
2
votes
Is it possible to apply formatters only for selected lines using ALE Vim plugin?
Range formatting is not supported by black because range of lines are in general not valid Python code.
You may have a look at black-macchiato.
Install black-macchiato by running the shell command:
...
2
votes
Accepted
pylint default filepath in ALE
Knowing from :help ale-python-pylint that we want to adjust g:ale_python_pylint_options to include --rcfile, I would drop
let g:ale_python_pylint_options = '--rcfile '.<filename>
in wherever ...
2
votes
Accepted
ALE not finding filetype, making linting difficult
You need at least filetype on for filetype detection.
2
votes
ale_floating_preview not working
For errors, g:ale_cursor_detail determines whether the popup shows up automatically or not.
For general :ALEHover information, you have to write your own autocommand:
augroup ale_hover_cursor
...
2
votes
Accepted
How to set the ALE configuration `g:ale_exclude_highlights`?
I'm not sure it applies to lines (see this ALE issue).
I suppose the best is to configure the underlying linter.
For the flake8 linter I have in ~/.flake8:
[flake8]
max-line-length = 125
ignore =
...
2
votes
How to use ALE with clangd and C++20
I am also using Vim 9.0 with ALE plugin
I am also configuring ALE for different programming languages. I saw your post and decided to try C++ first. Thank you for posting this query.
I tried your code,...
2
votes
ALE Code Action for python
I'm not aware of a Vim plugin that provide fix for warning detected by the linter.
But for automatic correction of missing Python import you could be interested by autoimport
You can fix the import ...
2
votes
Accepted
Unable to import Python packages into Vim
The "error" you see is probably virtual text written by ALE and caused by one of the static code checkers run by it. Turning ALE off with :ALEDisable should make the errors disappear.
One of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
plugin-ale × 69neovim × 10
vimrc × 8
filetype-python × 6
vimscript × 5
syntax-highlighting × 4
plugin-you-complete-me × 4
filetype-c++ × 4
eslint × 4
quickfix × 3
lsp × 3
key-bindings × 2
gvim × 2
autocompletion × 2
colorscheme × 2
plugin-system × 2
formatting × 2
python × 2
filetype-go × 2
filetype-typescript × 2
autocmd × 1
microsoft-windows × 1
highlight × 1
external-command × 1
filetype-tex × 1