]> Sergey Matveev's repositories - vim-lsp.git/commit
Add Ale integration support
authorMagnus Groß <magnus@mggross.com>
Fri, 2 Jun 2023 16:28:18 +0000 (18:28 +0200)
committerMagnus Groß <magnus@mggross.com>
Fri, 2 Jun 2023 16:28:18 +0000 (18:28 +0200)
commit126f187922b0a0a4c1335e044de0b5fc5b39f37b
treebf3ba2288bc1a40521267e3f7216535d8361265c
parentff89d0d1256d1d729736aa5d4433eb7471c35fd0
Add Ale integration support

Ale [0] is a famous plugin to show linter warnings and diagnostics. It
already provides extensive functionality and configurability to display
those diagnostics.
In order to allow diagnostics from other plugins (e.g. LSP plugins) to
be shown together with those linter warnings, Ale has API so that those
diagnostics can be sent to Ale.

Ale will then display them as if they came from Ale itself. This is
useful for many reasons, e.g. this ensures a consistent look and allows
the location list for a window to be populated with all diagnostics,
regardless from which plugin they come.

There are other famous LSP plugins, that already integrate with Ale,
e.g. coc.nvim [1] allows this with "diagnostic.displayByAle".

This patch implements the same functionality by adding an "aleSupport"
option that is off by default. If the option is turned on, diagnostics
will be sent to Ale instead of being displayed by this plugin directly.

[0] https://github.com/dense-analysis/ale
[1] https://github.com/neoclide/coc.nvim
README.md
autoload/lsp/diag.vim
autoload/lsp/options.vim
doc/lsp.txt