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 ~/....
jv-dev's user avatar
  • 481
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 ...
Joel Z.'s user avatar
  • 251
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 ...
D. Ben Knoble's user avatar
  • 26.2k
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
Mad Wombat's user avatar
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#...
Tri Nguyen's user avatar
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 "...
statox's user avatar
  • 49.8k
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.
Yegappan Lakshmanan's user avatar
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 ...
filbranden's user avatar
  • 28.8k
4 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* ...
D. Ben Knoble's user avatar
  • 26.2k
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 ...
3N4N's user avatar
  • 5,704
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 "...
D. Ben Knoble's user avatar
  • 26.2k
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 ...
D. Ben Knoble's user avatar
  • 26.2k
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 ...
statox's user avatar
  • 49.8k
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/...
Toshio Kuratomi's user avatar
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-...
D. Ben Knoble's user avatar
  • 26.2k
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
Vivian De Smedt's user avatar
3 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
Vivian De Smedt's user avatar
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 ...
Martin Tournoij's user avatar
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-...
Mark Stosberg's user avatar
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:...
Paul Rougieux's user avatar
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 ...
Jack Higgins's user avatar
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: ...
Vivian De Smedt's user avatar
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 ...
D. Ben Knoble's user avatar
  • 26.2k
2 votes
Accepted

ALE not finding filetype, making linting difficult

You need at least filetype on for filetype detection.
D. Ben Knoble's user avatar
  • 26.2k
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 ...
D. Ben Knoble's user avatar
  • 26.2k
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,...
Khushal's user avatar
  • 21
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 ...
Vivian De Smedt's user avatar
2 votes

How to see command lines and output for linters, etc

The :ALEInfo command produces a lot of output, including the commands that were run and the errors the respective tools reported. Look for the lines with <<<OUTPUT STARTS>>> and <&...
Friedrich's user avatar
  • 1,877
2 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 ...
Friedrich's user avatar
  • 1,877
1 vote

ALE Fix for a visual selection

You can use Vim's built-in :h formatprg and :h gq for this. You can set formatprg option to the fixer/formatter tool of choice, like: :let &l:formatprg='some-program --some-flag' Or with set ...
Peter Benjamin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible