Commit Graph
9 Commits
Author SHA1 Message Date
Martino Pilia 5542db1507 Support custom LSP notifications
Allow to send custom notification mesages, that expect no response from
the server.
2019-06-01 16:27:44 +02:00
Martino Pilia 3321685940 Refactor LSP custom request handling 2019-05-31 21:56:38 +02:00
Martino Pilia 7053d468cc Add API for custom LSP requests
Implement a function `ale#lsp_linter#SendRequest` that allows to send
custom LSP requests to an enabled LSP linter.

Resolves #2474
2019-05-31 17:58:27 +02:00
Martino Pilia 771581a945 Add settings for the Alex linter
The executable for the Alex linter is currently hard-coded as 'alex',
which is an issue given the fact that it conflicts with the Haskell
lexer generator, whose executable is also called 'alex', has been around
a dozen years before the linter, and is packaged in the official
repositories of the major Linux distributions.

This commit adds options to use a local executable for the alex linter
(which is a node package), and an option to set a custom executable.

As side changes:
* The pattern in the alex handler is made more readable by turnig it
  into a very-magic regex.
* Alex handles plain text, markdown, and HTML. Specific flags for HTML
  and markdown are provided when instantiating the linters for the
  respective filetypes, while before those formats were treated as plain
  text.
2019-02-02 16:20:14 +01:00
Martino Pilia 0a5de2b42b Add bandit linter for Python 2019-01-26 11:48:03 +01:00
Martino Pilia 66212966dd Add --nowrap to ispc options 2018-11-21 10:40:07 +01:00
Martino Pilia d90673ab5b Add GCC linter for Ada 2018-11-18 18:14:24 +01:00
Martino Pilia 9e8f2b0840 Lint ispc on disk to solve include imprecisions 2018-11-12 00:54:24 +01:00
Martino Pilia 0b4507ed56 Add linter for ispc 2018-11-11 18:26:37 +01:00