Donnie West
6637de46c2
Add scriptencoding to completion.vim
2019-11-08 16:44:03 -06:00
Donnie West
0b5fcbad1f
Allow the user to set their own completion values
2019-11-08 16:44:00 -06:00
Donnie West
4bdde36661
Check kind safely
2019-11-08 16:41:38 -06:00
Donnie West
db5fe5659f
Allow the user to remove warnings from completions
2019-11-08 16:41:37 -06:00
Thibault Vatter
db6b1b5ecc
Switch from style to transformers ( #2838 )
...
* Switch to transformers for styler
* Adapt unit test too
2019-11-07 18:22:57 +00:00
w0rp
2d9380d75c
Merge pull request #2690 from iclanzan/purty
...
Add purty fixer for PureScript
2019-10-29 17:37:18 +00:00
w0rp
9a0b604a99
Fix the test issues with html-beautify
2019-10-28 13:45:25 +00:00
Hugo Osvaldo Barrera
47eb3dd0c0
Add support for html-beautify ( #2788 )
...
* Add support for html-beautify
* Add html-beautify to the list of supported tools
* Update docs
2019-10-28 13:25:36 +00:00
Charlie Johnson
af8c8516d1
fixers/stylelint: enhance stylelint
fixer ( #2745 )
...
* Refactor stylelint fixer test
* Support additional stylelint fixer options
* Support changing working directory for stylelint fixer
* Force css syntax for stylelint fixer
2019-10-28 13:23:02 +00:00
Jerko Steiner
463deedc29
Merge branch 'master' into do-not-save-on-autoimport
2019-10-22 16:40:27 -05:00
Jerko Steiner
40890cfcf3
Rename ale#fix#SetBufferContents to ale#util#SetBufferContents
2019-10-22 16:39:43 -05:00
Ian Campbell
ea91209a66
Allow the use of StandardX for StandardJS linting and fixing.
...
See https://github.com/standard/standardx
2019-10-21 20:46:54 -04:00
Ian Campbell
cf5120ba75
Remove standardts fixer in favor of allowing standard.vim fixer to handle JavaScript or TypeScript options.
2019-10-21 20:46:54 -04:00
Ian Campbell
9017d3ef9c
Add StandardJS for TypeScript linting and fixing.
2019-10-21 18:20:43 -04:00
w0rp
67d0ccc398
Fix #2835 - Bump up the sign group version check for NeoVim
2019-10-21 09:35:23 +01:00
w0rp
c06467438d
Mention the disabled option for message severity
2019-10-18 16:22:17 +01:00
Andre Souto
5e69aaf4c2
Adding support for LSP window/showMessage
method ( #2652 )
...
* Added base handling for window/showMessage
* Ignoring severity log
* Code formatting
* Added user configurable severity
* Preferring ale#util#ShowMessage over echo'ing directly
* Using format similar to ale_echo_msg_format for consistency
* Updating docs
* Added LSP log config string; improved tests
* Use warning as fallback for incorrect user config
2019-10-18 16:17:54 +01:00
w0rp
9125ec8739
Merge pull request #2845 from DonnieWest/fixItemDetailsOnEmptySource
...
Fix tsserver not returning details for items with empty source
2019-10-18 15:16:54 +01:00
Donnie West
8698c44e2a
Fix tsserver not returning details for items with empty source
2019-10-17 23:26:24 -05:00
Donnie West
b27df1b169
Allow code actions to work on callback based sources
2019-10-17 23:22:31 -05:00
w0rp
b24fd13423
Bump the ALE version
2019-10-16 17:23:31 +01:00
Ildar Akhmetgaleev
31d6f72abf
Add option to show hover messages in preview.
...
Add new option 'ale_hover_to_preview' to show hover messages
in preview window.
2019-10-12 16:45:12 +07:00
Jerko Steiner
c8c142b881
Do not save for ALERename and ALEOrganizeImports
2019-10-09 20:54:47 -05:00
w0rp
3fe2223a48
Fix #2800 - Ignore completion user data which is not a dictionary
2019-10-09 10:12:31 +01:00
w0rp
d3a3f4011b
Merge pull request #2676 from davidtwco/nixfmt-fixer
...
Add nixpkgs-fmt fixer.
2019-10-07 19:22:01 +01:00
Horacio Sanson
7c2f5e83ab
Fix sign parser to be language independent.
2019-10-04 21:58:44 +09:00
Horacio Sanson
41ff80dc9e
569 support vim sign group and priority ( #2786 )
...
* Use sign-group only on supported vim versions.
The sign-group feature is only available in nvim 0.4.0 and vim 8.1.614.
* Add priority to ALE signs.
This allows users to set a priority to ALE signs to take precedence over
other plugin signs.
2019-09-25 09:15:16 +01:00
w0rp
e6946de98a
Merge pull request #2736 from zoonfafer/doc-typos
...
doc: Fix typos
2019-09-20 20:50:58 +01:00
w0rp
d93512fe60
Fix #2744 - Make ALEFix work when only casing is changed
2019-09-20 19:02:21 +01:00
Jerko Steiner
f5e44415e8
Show description of autoimport action for tsserver
2019-09-20 13:11:16 +07:00
w0rp
e3784c4c4e
Close #2764 - Support the new React filetypes with aliases
2019-09-19 20:48:37 +01:00
w0rp
dd6bd6f0fe
Fix #2711 - Fix writing to files on save
2019-09-19 20:32:33 +01:00
Mo Zhonghua
b8949aaac3
arguments
needs to be handled for compile_commands.json
in addition to command
(#2123 )
...
* c linter: compatible with compile_commands.json without command field
2019-09-19 20:20:37 +01:00
statquant
34431d885b
Adding linting for rmd filetype (duplicate of rmarkdown)
2019-09-14 15:55:04 +01:00
Cluas
a6c59faa0f
feat: support sqlformat. ( #2702 )
...
* feat: support sqlformat.
2019-09-12 22:48:27 +01:00
Jerko Steiner
3e8c8d3ccb
Add ALERename (tsserver & LSP), ALEOrganizeImports (tsserver) and auto import support (tsserver) ( #2709 )
...
This commit adds support for renaming symbols in tsserver and with LSP tools, and for organising imports with tsserver. Completion results for symbols that can be imported are now suggested if enabled for tsserver completion done via ALE.
2019-09-12 21:53:23 +01:00
w0rp
b66d202c1d
Merge pull request #2695 from elebow/move-ruby-escape-executable
...
Move ale#handlers#ruby#EscapeExecutable to ale#ruby#EscapeExecutable
2019-09-12 21:29:41 +01:00
Samuel Roeca
05ba522c9a
languagetools: stop auto-appending --autoDetect ( #2616 )
...
Options are now configurable for languagetools, and `--autoDetect` can be removed by changing the options.
2019-09-12 21:22:47 +01:00
w0rp
cda46636f4
Fix #2760 - Ignore all errors for adding NeoVim highlights
2019-09-11 16:49:25 +01:00
theoremoon
2e323b529d
dfmt support ( #2662 )
...
* Add support for `dfmt`
2019-09-10 20:54:14 +01:00
BlahGeek
9f814a8ce9
Add g:ale_sign_highlight_linenr ( #2678 )
...
* add g:ale_sign_highlight_linenr
* Fix tests. Change option default value
* Rename ale_sign_highlight_linenr to ale_sign_highlight_linenrs
* Default ale_sign_highlight_linenrs to 0
2019-09-01 14:03:54 +01:00
w0rp
7d7ddf22d3
Merge pull request #2638 from frangio/nvim-highlight
...
Use Neovim API for highlights when available
2019-09-01 10:47:28 +01:00
Jeffrey Lau
da262f40dd
doc: Fix typos
2019-08-28 00:28:58 +08:00
David Wood
6aeb462171
Add nixpkgs-fmt fixer.
...
This commit adds a fixer for the Nix language, nixpkgs-fmt
(https://github.com/nix-community/nixpkgs-fmt ).
2019-08-26 19:21:07 +01:00
w0rp
73812c3e41
Merge remote-tracking branch 'AlexeiDrake/master' into bugfix/c-lsp-build-dir-settings
2019-08-18 18:29:59 +01:00
richyfish
c4bdf165ca
Black fixer should include --pyi for files with .pyi extension ( #2705 )
...
* black fixer should include --pyi for files with .pyi extension
2019-08-18 15:45:15 +01:00
w0rp
ddb559b3be
Merge pull request #2631 from timlag1305/feat/ada-gnatpp
...
Add gnatpp fixer for Ada
2019-08-18 15:37:51 +01:00
Andre Souto
219fb5873c
Keep cursor position on screen when opening/closing lists ( #2632 )
...
* Trying to keep win view from bouncing
* Adjusting when views are saved and restored
* Also restore view when closing quickfix
* Don't restore view when opening list vertically
2019-08-17 19:14:21 +01:00
fx-carton
b62e306222
Fix cflags parsing ( #2510 , #2265 ) ( #2590 )
...
* Parse CFLAGS that can be passed using a whitelist
I went through GCC's man page and selected flags that can safely be
passed to GCC and that can be useful to syntax checking. These include:
- -I/-i* include flags
- preprocessor flags such as -D
- -W* warning flags
- -O* optimization flags
- most -f options
- -m arch dependent options
* Fix CFLAGS tests: -Idir is now parsed to -I dir
* Added two tests for flags we want or don't want to pass.
* Also check for / in addition to s:sep
2019-08-17 19:08:14 +01:00
Donnie West
5388ff1d54
Add asyncomplete.vim Support ( #2627 )
2019-08-17 18:40:05 +01:00
Eddie Lebow
58e8d32d79
Move ale#handlers#ruby#EscapeExecutable to ale#ruby#EscapeExecutable
...
This function is generally applicable to Ruby, not just handling linter
output.
2019-08-13 01:52:13 -04:00
Sorin Iclanzan
f89b49a014
Add purty fixer.
2019-08-12 11:49:19 -04:00
richyfish
28c93ab185
aleinfo global options ( #2686 )
...
* added omitted global variables which was breaking this test when run standalone
* invert logic for s:GetLinterVariables excluding disabled linters, so that linter global options can appear in output
* additional tests for s:GetLinterVariables for linter global options
2019-08-12 16:29:28 +01:00
w0rp
3ae01ba249
Merge pull request #2430 from eliath/master
...
Support $GO111MODULE with Go tooling
2019-07-30 21:17:20 +01:00
w0rp
8f5ecf0120
Merge pull request #2646 from paulreimer/fixer-clangformat-use-assume-filename
...
Set --assume-filename for clangformat fixer
2019-07-30 08:21:21 +01:00
JINNOUCHI Yasushi
d1c56769b7
Add setting for numhl highlights ( #2637 )
...
* Add setting for numhl highlights
* Add doc for numhl feature
2019-07-29 22:08:33 +01:00
Paul Reimer
d25711a516
Set --assume-filename for clangformat fixer
2019-07-19 07:57:10 -07:00
w0rp
36a50111b9
Merge pull request #2601 from delphinus/feature/better-completion-for-deoplete
...
Show more candidates for Deoplete completion
2019-07-14 10:29:03 +01:00
Matthew Lanigan
abb38955d3
Add Sorbet ruby linter and fixer ( #2614 )
2019-07-13 17:37:48 +01:00
Francisco Giordano
6e6ad2e430
Try to mock nvim api functions
2019-07-10 01:20:22 -03:00
Francisco Giordano
79dde5f0e5
Implement highlights using neovim API
2019-07-09 23:23:27 -03:00
Pete Beardmore
a5240009ba
Fix incorrect re-selection ( #2630 )
...
ALE now only resets selections when needed, to prevent side effects.
2019-07-02 08:31:24 +01:00
ObserverOfTime
8700586890
Add clangtidy fixer ( #2548 )
...
* Add clangtidy fixer
* Add extra_options to clangtidy fixer
* Also, use cpp variables in cpp filetypes
2019-07-02 08:11:10 +01:00
Tim Lagnese
221aceb6db
Add gnatpp fixer for Ada
2019-07-01 20:50:02 -04:00
Elias Martinez Cohen
49db8210f6
Support $GO111MODULE with Go tooling
...
Allows the user to override $GO111MODULE environment variable through
ale options. This gives control over the default behavior of Go module
resolution.
Golang documentation:
https://github.com/golang/go/wiki/Modules#how-to-use-modules
Add `ale#Go#EnvString()` function to make it easy to add similar Go
environment variables in the future.
Use the new `EnvString` function in all available Go tools callbacks
& update tests
Also add test of linter command callback for `gofmt`
2019-07-01 11:04:33 -04:00
delphinus
a3521de64e
Use input_patterns & add comments for updating it
2019-06-25 18:04:04 +09:00
delphinus
e0f8304860
Add separated func for deoplete
...
Deoplete needs `get_complete_position` method and it has a different
signature. It already fetches the input string and attempts to detect
the position with `\k*` regexp patterns.
2019-06-19 15:08:24 +09:00
Parker Snell
c5a4bbf8b0
Enable C++ autocompletion on '::' and '->'
2019-06-18 18:02:44 -07:00
w0rp
6e28eec243
Merge pull request #2563 from dcyriller/fixer-prettier-glimmer
...
prettier: Support experimental languages (Handlebars)
2019-06-13 11:08:21 +01:00
Cyrille David
86205967ea
Refactor to be less verbose
2019-06-13 10:36:51 +02:00
w0rp
80ab12c7b6
Bump the ALE version
2019-06-10 23:53:42 +01:00
w0rp
ce91972c94
Fix #1727 - Replace previoulsy defined linters with matching names
2019-06-10 22:41:20 +01:00
w0rp
168768b326
Lint on InsertLeave, not in insert mode by default
...
b:ale_lint_on_insert_leave is now supported as tests need it.
These defaults are saner and cause fewer issues for users by default.
2019-06-10 20:54:38 +01:00
w0rp
8b46fa3ee7
Merge pull request #2567 from theevocater/add_reorder_python_imports
...
Add support for reorder-python-imports fixer
2019-06-10 19:33:00 +01:00
Thibault Vatter
22e7a6f6c2
Make rmarkdown files work with styler and lintr ( #2564 )
...
* add R markdown as filetype for styler
* Add rmarkdown as an alias for R
2019-06-10 19:27:42 +01:00
Jake Kaufman
56641e0230
Add support for reorder-python-imports fixer
...
isort is great, but I've come to prefer reorder-python-imports. The tool
has a focus on smaller diffs than isort. reorder-python-imports is also
a little smarter than isort which is nice.
2019-06-08 19:22:50 -04:00
w0rp
59829bc194
Merge pull request #2253 from jj-kim/master
...
Improve location list behavior on split windows of same buffer.
2019-06-08 23:25:02 +01:00
w0rp
d9931b9891
Merge pull request #2559 from nerdrew/rust-cargo-rendered-detail
...
show rendered cargo error in detail for clippy errors
2019-06-08 23:20:18 +01:00
w0rp
3aa58ca179
Merge pull request #2565 from Tharre/master
...
Run xml linters on xsd and xslt files
2019-06-08 23:09:09 +01:00
w0rp
5826b4927c
Merge pull request #2551 from laino/eslint-json
...
Use JSON output for ESLint and fix tsserver column
2019-06-08 23:05:35 +01:00
Tharre
3b8fb39b4a
Run xml linters on xsd and xslt files
...
Both xsd and xslt are by definition written in XML, and thus the same
linter(s) can be run to check them for well-formedness.
2019-06-06 23:46:43 +02:00
Cyrille David
3e4b8ea466
prettier: Support experimental languages
...
Such as handlebars
2019-06-06 22:04:32 +02:00
w0rp
7b78f2b846
Fix #2525 - Convert Windows paths in a Unix environment
2019-06-05 14:16:43 +01:00
Andrew Lazarus
e7317e05ea
show rendered cargo error in detail
2019-06-04 22:20:57 -07:00
w0rp
381fff0e4c
Make ale_lint_on_save work with b:ale_fix_on_save = 1
2019-06-04 21:51:53 +01:00
Christoph Koehler
4129c356e8
Fix #1279 - Run cppcheck differently when modified
...
cppcheck is now run without the --project option and from the buffer's
directory instead when the buffer has been modified. Saving the buffer
will get results by linting the project instead.
2019-06-03 21:54:23 +01:00
Andrew Lee
c6a5cbb3c7
Feature/add ant support ( #2539 )
...
Use ant files to load Java settings too.
2019-06-03 20:30:18 +01:00
w0rp
a76f056bd9
Fix #2555 - Remove highlights in lowercase, etc
2019-06-03 20:16:49 +01:00
Nils Kuhnhenn
79d1b99067
Use JSON output for eslint and fix tsserver column
2019-06-02 14:39:03 +02:00
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
w0rp
27146ade32
Fix #2544 - Completion positions are off by one
2019-05-30 10:26:17 +01:00
w0rp
ca0cdd26fc
Merge pull request #2540 from sijad/pgformatter
...
add pgformatter fixer
2019-05-29 21:26:01 +01:00
w0rp
90b1ea230d
Fix #2438 - Print a friendly message when the clipboard is not available
2019-05-28 20:27:10 +01:00
w0rp
67d7caee30
Fix #2535 - Automatically emit <C-x><C-o> less to prevent <C-o> issues
2019-05-28 20:03:35 +01:00
Jacques Kvam
47ad24c221
fix neovim missing setbufline
2019-05-27 20:12:24 -07:00
Sajjad Hashemian
8d8b295ef5
add pgformatter
2019-05-27 09:00:11 +04:30
Horacio Sanson
2f13c2d263
Add fix to HandleTSServerDiagnostics function.
2019-05-22 20:19:45 +09:00
Horacio Sanson
b41836130c
Fix HandleLSPDiagnostics buffer match logic.
...
To find the buffer corresponding to URIs reported by LSP the
HandleLSPDiagnostics() method uses the built-in bufnr() function. From
the documentation we learn that the first parameter of bufnr() is
an expression, not a path.
EclipseLSP will report project wide errors (e.g. gradle errors) that are
not related to any actual source file with an URI that corresponds to the
project root folder, e.g:
file:///home/username/Projects/gradle-simple
This URI will match any open buffer of files within the project root
hiearchy, thus project-wide errors appear as part of every file within
the project, e.g:
file:///home/username/Projects/gradle-simple/src/main/java/Hello.java
To fix this, this MR adds '^' to the beginning and '$' at the end of the
URI path to force an exact match. This is how is recommended in vim
help (see :h bufname).
2019-05-22 10:30:24 +09:00
w0rp
89db85121c
Merge pull request #2502 from ericvw/flake8-config
...
Change Python project root dir detection for flake8 configuration
2019-05-21 00:15:12 +01:00
w0rp
26e5948617
Close #2516 - Handle problems with inlined functions
2019-05-20 23:50:38 +01:00
w0rp
143af2b9fd
Fix #2421 - Use compile_commands.json in build dirs to find roots
2019-05-20 19:57:08 +01:00
w0rp
5e64acc6ab
Fix #2512 - Use -o /dev/null for gcc linting
2019-05-20 13:00:32 +01:00
w0rp
4ee28d3129
Fix #2515 - Send client capabilities to LSP servers
2019-05-20 09:40:06 +01:00
w0rp
9d908ecc66
Close #1739 - Use deletebufline() for fixing files were available
2019-05-20 02:06:25 +01:00
Eric N. Vander Weele
57736cdccc
Change Python project root dir detection for flake8 configuration
...
The official configuration files for `flake8` are `.flake8`, `tox.ini`,
and `setup.cfg`.
After investigation, it is safe to remove `flake8.cfg` as it appears to
only exist as a typo in other tooling documentation (e.g.,
`python-language-server`).
Even though no linters automatically read `.flake8rc`, it is kept in
case projects may be using it for detecting the projects root directory.
2019-05-19 09:51:26 -04:00
w0rp
652d991077
Fix #1317 - Jump to column 1 for problems at column 0
2019-05-17 22:08:03 +01:00
w0rp
e6745a3811
Fix #1989 - Use ESlint options for fixers too
2019-05-17 20:45:25 +01:00
w0rp
e5ea809094
Close #2285 - Add a function for use with omnifunc
2019-05-17 00:57:52 +01:00
w0rp
d0f2a0ae94
Fix #2505 - Remove NeoVim highlight support for now
2019-05-16 20:04:18 +01:00
w0rp
9b89ec3d86
#2505 Try to fix NeoVim highlighting out of range errors
2019-05-16 13:44:40 +01:00
w0rp
381fe1badf
Close #829 - Close LSP documents when buffers are deleted
2019-05-14 00:21:58 +01:00
w0rp
42cbff29f8
Fix #2497 - ALE should not lint on save when disabled after fixing
2019-05-13 13:44:29 +01:00
w0rp
bfc79bd2aa
#2492 - Try to fix a deoplete bug again
2019-05-12 19:35:10 +01:00
w0rp
7943bfab96
Make eslint respect the ale_warn_about_trailing_whitespace setting
2019-05-12 15:49:16 +01:00
w0rp
df90725c85
Support b:ale_completion_enabled for disabling it for some buffers
2019-05-11 17:19:45 +01:00
w0rp
79e42fed14
#2403 - Make ale_disable_lsp apply consistently, and document it better
2019-05-10 13:42:41 +01:00
w0rp
722c3e8dae
#2481 - Use text to insert from insertText
2019-05-09 17:26:33 +01:00
Kanenobu Mitsuru
c10da0e390
Add fixer for OCaml ocp-indent ( #2436 )
2019-05-07 18:50:26 +01:00
Andrey Popp
e6ba936a0c
Fix off by one error line highlight w/ nvim api
2019-05-05 19:14:40 +03:00
Alvin Chan
7f0954b89e
Add XO as a linter/fixer for TypeScript files ( #2453 )
2019-05-02 11:59:18 +01:00
w0rp
5d65f93033
Merge pull request #2437 from robertjlooby/add-floskell
...
Add floskell for Haskell formatting
2019-05-01 22:43:44 +01:00
w0rp
eae124e8ce
Fix #2460 - Do not track when LSP linters are busy
2019-05-01 20:49:03 +01:00
Andrey Popp
114198e082
Optionally use neovim's api-highlights ( #2169 )
2019-05-01 19:35:15 +01:00
w0rp
2f3bce5a1d
Merge pull request #2448 from reedriley/master
...
Add support for Vim's tagstack to ALEGoToDefinition
2019-04-29 20:55:45 +01:00
w0rp
737ed31de5
Disable fsync for writefile() calls for performance
2019-04-26 20:17:33 +01:00
Reed Riley
46c743a247
Updated Vim version in Dockerfile and made UpdateTagStack clearer
...
The `settagstack` and `gettagstack` functions don't exist prior to Vim
8.1.0519. And the function definition was unclear whether it intended
to grab the *old* or the *new* file/line/col.
2019-04-24 09:58:13 -04:00
w0rp
01331266a8
Close #1753 - Implement minimum viable integration with Deoplete
2019-04-23 21:26:25 +01:00
Thibault Vatter
ce0b14979e
Add a fixer for r based on the styler package ( #2401 )
...
* Add styler as a new fixer for R files
* Add to the list of supported tools
* Add documentation
2019-04-23 19:44:26 +01:00
w0rp
893ac34cca
Fix #2452 - Strip trailing spaces off sign text automatically
2019-04-23 15:58:10 +01:00
Reed Riley
c36f3e78e4
Add support for Vim's tagstack to ALEGoToDefinition
...
fixes 1236
2019-04-19 23:10:55 -04:00
w0rp
fcc2c3ba71
Fix #2415 - Mark tsserver and LSP linters inactive again
2019-04-17 18:12:50 +01:00
Jethro Shuwen Sun
9e95032b30
fix 2434: use text field instead of the detail field for virtualtext ( #2441 )
...
* use text field instead of the detail field for virtualtext
* make the change simpler
2019-04-16 14:40:39 +01:00
w0rp
59f8c35a2f
Fix #1930 - Finish ale_fix_on_save_ignore
...
* Implementation had a bug
* Documentation added
* Tests added
2019-04-16 13:44:43 +01:00
w0rp
24d277384c
#1930 - Add ale_fix_on_save_ignore for disabling some fixers on save
2019-04-15 23:15:18 +01:00
w0rp
23a8208498
#782 - Use compile commands for matching source files for headers
2019-04-15 21:38:11 +01:00
Jethro Shuwen Sun
7f31065fce
improve the lsp diagnostic message format ( #2425 )
2019-04-15 14:36:18 +01:00
Rob Looby
99361b2ca9
Add floskell for Haskell formatting
2019-04-14 11:27:48 -05:00
Riley Martine
495bce32e9
Add support for latexindent ( #2387 )
2019-04-13 13:21:59 +01:00
w0rp
784d1a9a62
Merge pull request #2394 from harttle/master
...
feat: fecs support for js/html/css lint and format
2019-04-13 12:35:52 +01:00
w0rp
6428162f79
Merge pull request #2433 from belka-ew/bugfix/remove-otherproject-util-double
...
Remove otherproject#util#Double from d.vim
2019-04-13 12:29:31 +01:00
Jesse Harris
2ed53108c4
Linter for powershell syntax errors ( #2413 )
...
* Linter for powershell syntax errors
2019-04-13 12:24:56 +01:00
Eugen Wissner
751838621a
Remove otherproject#util#Double from d.vim
2019-04-13 07:59:01 +02:00
Jun Yang
d4841cedf2
style: fecs related doc and vim scripts
2019-04-11 16:24:59 +08:00
harttle
c820089c44
feat: fecs support for js/html/css lint and format
...
`fecs` is a lint tool for HTML/CSS/JavaScript,
see http://fecs.baidu.com for more options.
2019-04-11 16:24:58 +08:00
w0rp
16b43a5708
Do not complain about generated _callback settings
2019-04-10 19:53:11 +01:00
w0rp
042b351b7a
Merge pull request #2366 from aweis/fixtypo
...
ruby: fix a typo in a comment
2019-04-10 18:54:43 +01:00
Dan Loman
864d0861e4
[lsp] Add Swift / SourceKit-LSP support ( #2420 )
...
* [linter] Add LSP support for Swift via sourcekit-lsp
2019-04-08 16:25:30 +01:00
w0rp
9a0ece1ecb
Fix #2399 - Do not check buffers used for displaying diffs
2019-04-08 13:42:09 +01:00
w0rp
6d14dc0ac0
#2417 - Silence errors for shortmess+=T
2019-04-08 11:41:23 +01:00
w0rp
ce64e349cd
Close #2132 - Add deprecation warnings for old features
2019-04-07 16:24:08 +01:00
w0rp
e85eb82401
#2132 - Implement feature tests with ale#Has
2019-04-07 15:34:39 +01:00
w0rp
3bebcb5d48
#2132 - Replace command_chain and chain_with with ale#command#Run
2019-04-07 14:58:06 +01:00
w0rp
435a072181
#2397 - didChangeConfiguration should be a notification
2019-04-02 22:00:03 +01:00
rhysd
6a29641872
Add g:ale_disable_lsp and b:ale_disable_lsp to disable linters powered by LSP
2019-03-30 15:29:17 +09:00
w0rp
89273b65b8
Merge pull request #2369 from ajcrites/ajcrites/2368/vertical-focus-fix
...
Fix #2368 - Open vertical list to the right
2019-03-29 19:23:52 +00:00
w0rp
3eb6d7b3db
#2395 - Handle empty output for redpen
2019-03-29 16:09:27 +00:00
w0rp
442d672d8a
#2397 - disable elixir-ls by default, which can be CPU hungry
2019-03-29 14:19:13 +00:00
w0rp
a92627e1e1
Fix #2402 - Handle null LSP references responses
2019-03-29 13:42:24 +00:00
Andrew Crites
a3a052b55a
Fix #2368 - Open vertical list to the right
...
This was normal behavior before, and it also stops ale from stealing focus.
2019-03-16 21:39:11 -04:00
Adam Weis
1427a090df
ruby: fix a typo in a comment
2019-03-15 16:18:57 -07:00
w0rp
80ef7ea2d0
#2357 Handle Windows paths where the drive letter colon is encoded
2019-03-13 16:44:29 +00:00
w0rp
67ea571659
Handle pipes in Windows drive letters for URIs
2019-03-13 15:54:09 +00:00
Tomasz N
5f03bae41c
Fix parsing the third part of version string ( #2355 )
...
* Fix parsing the third part of version string
* Add test
* Test: fix checking cached version
2019-03-12 17:49:48 +00:00
w0rp
365ffae6c4
Fix #2351 - Escape spaces and backslashes for signs
2019-03-11 19:44:51 +00:00
w0rp
f0da35b958
Merge pull request #2349 from oblitum/fix-missing-languagetool-file-argument
...
Fix passing file to languagetool
2019-03-11 09:15:29 +00:00
w0rp
a6012d853c
Merge pull request #2347 from codenut/master
...
Fix for #2346
2019-03-11 09:07:31 +00:00
Francisco Lopes
d9a12348d0
Fix passing file to languagetool
2019-03-11 04:42:25 -03:00
w0rp
03384a5d6f
#2341 - Handle completion messages with textEdit objects
2019-03-10 15:21:36 +00:00
Michael Valladolid
a5cf7e854b
set maximum number of autocomplete suggestions for results coming from LSP
2019-03-10 00:50:25 +08:00
w0rp
8a0213f1fd
Remove more uses of command_callback and executable_callback
2019-03-09 14:30:28 +00:00
Vincent Dahmen
7eae06d3f3
linter/markdown: adds support for languatool ( #2155 )
2019-03-09 13:55:54 +00:00
w0rp
fd31987f23
Merge pull request #2327 from akshit-sharma/master
...
clang-format supported with nvcc (cuda files)
2019-03-08 21:36:43 +00:00
w0rp
413529f603
Fix #2326 - ALEComplete no longer replaces completeopt
2019-03-08 21:32:05 +00:00
w0rp
be2c0c3af5
Merge pull request #2325 from rustic-games/rust-spans
...
set correct Rust span end column
2019-03-08 20:23:42 +00:00
w0rp
5505f2323d
Fix #2330 - Do not use getcurpos() to avoid changing curswant
2019-03-07 12:28:42 +00:00
akshit-sharma
163f0ab06e
clang-format supported with nvcc (cuda files)
2019-03-02 21:39:44 -07:00
Jean Mertz
26460a77a7
set correct Rust span end column
...
The Rust compiler returns the first column that is _not_ part of the
current span as `column_end`, while Ale expects `end_col` to signify
the last column of the span.
2019-03-02 16:17:17 +01:00
w0rp
c4328f2a31
#2132 - Support deferred execution for LSP executables, commands, and addresses
2019-02-27 23:26:32 +00:00
w0rp
70a9176de0
#2132 - Set up fixers for deferred support
2019-02-26 08:35:58 +00:00
w0rp
89e5491862
Revert " #2132 Change (buffer, lines) fixer functions to (buffer, done, lines)"
...
This reverts commit f1ed654ca5
.
2019-02-22 20:48:06 +00:00
w0rp
883978ece9
#2132 - Replace all uses of foo_callback with foo
2019-02-22 18:05:04 +00:00
w0rp
f53b25d256
#2132 - Implement project_root as a replacement for project_root_callback
2019-02-22 15:24:34 +00:00
w0rp
f8aeb5c5a4
#2132 - Make most foo_callback options work as foo
2019-02-22 00:35:53 +00:00
w0rp
ffa45fa3fb
#2132 - Implement deferred command handling for linters
2019-02-21 21:24:41 +00:00
w0rp
a8b987a1c3
Fix #2300 - Handle more URIs per RFC 3986
2019-02-21 19:47:22 +00:00
w0rp
707a42167f
Merge pull request #2302 from kevinoid/pylint-cd-proj-root
...
python/pylint: Change directory to project root
2019-02-20 09:54:13 +00:00
Lukas Reineke
b8cecca8c8
Clear the virtualtext on disable
2019-02-20 11:08:27 +09:00
Kevin Locke
3300b1aca7
python/pylint: Change directory to project root
...
Pylint only [checks for pylintrc] (and .pylintrc) files in the packages
aboves its current directory before falling back to user and global
pylintrc. For projects with a src dir, running pylint from the
directory containing the file will not use the project pylintrc.
Adopt the convention used by many other Python linters of running from
the project root, which solves this issue. Add pylintrc and .pylintrc
to FindProjectRoot. Update docs.
[checks for pylintrc]: https://github.com/PyCQA/pylint/blob/pylint-2.2.2/pylint/config.py#L106
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-17 10:40:50 -07:00
w0rp
5b6df0a85f
Fix #2299 - Make tsserver run again
2019-02-15 15:34:31 +00:00
w0rp
1a69c9c88c
#2295 Send an empty object for the initialized notification, per the spec
2019-02-15 10:44:45 +00:00
w0rp
0d10653a7c
Fix #2295 - Respond to initialize with an initialized message
2019-02-15 08:54:53 +00:00
w0rp
89039187da
Fix #2294 - Fix some syntax that broke LSP
2019-02-15 08:32:01 +00:00
w0rp
7487ecb957
Simplify code for marking linters as active
2019-02-14 10:10:46 +00:00
w0rp
3050a132b5
Remove ProcessChain code we do not need now
2019-02-13 17:56:10 +00:00
w0rp
21a8b9f1e3
Make it easier to remove command_chain support later
2019-02-13 17:53:01 +00:00
w0rp
1ee56713b8
#2132 Use an on-init callback for all LSP logic
2019-02-13 17:26:37 +00:00
w0rp
926ad47a49
#2132 - Implement deferred executable string handling for linters
2019-02-12 18:05:33 +00:00
Derek Sifford
aca1edb476
add project_root_callback for tsserver ( #2290 )
...
* add project_root_callback for tsserver
* add tests for tsserver project root
* Update test/command_callback/test_javascript_tsserver_command_callback.vader
2019-02-11 21:24:22 +00:00
w0rp
6ebe24b5ff
Merge pull request #2268 from m-pilia/alex
...
Add settings for the Alex linter
2019-02-10 23:43:43 +00:00
w0rp
752e6f0ab9
Merge pull request #2277 from chaucerbao/feature/redraw-after-open
...
Center the result after `ale#util#Open` jumps
2019-02-10 23:34:21 +00:00
w0rp
7a48750610
Complain about binary operators on the ends of lines
2019-02-10 11:43:48 +00:00
Théo Cavignac
d072d2654c
Supporting filtered jump ( #2279 )
...
* Support filtered jump based on loclist item type (E or W for now)
* Use flags to customize the behavior of ALENext and ALEPrevious
* Update <plug> bindings with flags
* Update documentation about ALENext and ALEPrevious
* Use ale#args#Parse in JumpWrap
2019-02-10 11:11:29 +00:00
Kevin Locke
a24f0b4d5f
Support pylama for python ( #2266 )
...
* Add pylama for python
* Consolidate python traceback handling
2019-02-08 21:44:34 +00:00
w0rp
422908a572
#2009 - Force Windows jobs to run in a CMD shell
2019-02-08 21:33:16 +00:00
w0rp
ba6f08f3d4
Merge pull request #2262 from sectioneight/cd-for-black
...
Respect python black fixer configuration file
2019-02-08 20:11:11 +00:00
w0rp
3ba7d02708
Merge pull request #2272 from Rahlir/fix-c-compilecommand
...
Fix error when parsing compile_commands for c languages
2019-02-08 20:06:12 +00:00
Alvin Chan
1fb0de2a8e
Add -relative
option to ALESymbolSearch ( #2255 )
...
* Add `-relative` option to ALESymbolSearch
* Document the `-relative` option for ALEFindReferences and ALESymbolSearch
2019-02-08 19:43:04 +00:00
w0rp
d21581016e
Fix #2257 - Fix an off by 1 which broke completion for some servers
2019-02-08 19:31:47 +00:00
w0rp
b32fdfe816
#2132 Implement deferred objects for ale#command#Run
2019-02-08 08:41:38 +00:00
w0rp
19cc724807
Add a function for parsing command args
2019-02-07 18:10:34 +00:00
w0rp
81c73da3b9
#2132 - lint and fix with ale#command#Run
...
A new function is added here which will later be modified for public use
in linter and fixer callbacks. All linting and fixing now goes through
this new function, to prove that it works in all cases.
2019-02-06 22:00:11 +00:00
w0rp
3e11cbd18d
Update syntax checking
...
* Line continuation characters should be on the same lines.
* .vim file line indentation should be a multiple of 4.
2019-02-06 18:05:13 +00:00
Alvin Chan
70b95f16c3
Replace normal
with normal!
2019-02-05 16:37:26 -08:00
Alvin Chan
9f63bec12c
Remove the redraw
since it's implicit with the zz
2019-02-05 16:31:02 -08:00
Alvin Chan
7ce481c8f6
Center the line within the viewport after a jump
2019-02-05 16:27:13 -08:00
Alvin Chan
a4ed9a1c35
Force Vim to redraw
after ale#util#Open
2019-02-05 16:13:58 -08:00
Tadeas Uhlir
37daedafed
Fix error when parsing compile_commands for c langs
...
This little error caused that when parsing compile_commands json, the
filename was used to fetch entries in directory dictionary, hence, when
adding new json commands, it never found anything in dir_lookup and
instead rewrote the previous entry. Hence, the dir_lookup always
contained list of only one compile_command per directory instead of all
compile_commands for given directory.
2019-02-04 16:50:46 -05: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
Aiden Scandella
de29ff26ff
Respect python black fixer configuration file
...
Similar to other linters/fixers, by default change to the directory of
the file being fixed before invoking `black`, which allows the tool to
read project-specific configuration (pyproject.toml)
Fixes #2218
2019-01-30 14:44:38 -08:00
w0rp
08d3523962
Merge pull request #2228 from Nomad145/ktlint
...
Add ktlint Fixer Support
2019-01-27 15:55:13 +00:00
petpetpetpet
3c38fdb1bb
Extend statusline interface ( #2240 )
...
* Extended statusline.vim to provide an efficient way to access the first errors,warnings,stylerrors,stylewarnings,etc from the loclist.
* Added documentation and help for the new API function.
2019-01-27 12:44:49 +00:00
TANIGUCHI Masaya
03b25dd39b
Add textlint for tex ( #2234 )
2019-01-27 12:14:34 +00:00
w0rp
79135dfe13
Fix #2192 - Handle more ignore-pattern messages for ESLint
2019-01-27 12:08:39 +00:00
Attila Maczak
d7ced31fe2
add cmake-format fixer support ( #2244 )
2019-01-27 11:45:57 +00:00
Niclas Åhdén
e46c17e8ef
SugarSS support from PR 1967 ( #2219 )
...
* sugarss support + bonus naming Sass correctly
* cleanup + alphabetic ordering
2019-01-27 11:42:11 +00:00
w0rp
3ac12b6939
Fix #2216 - Tolerate versions without path numbers
2019-01-27 10:56:08 +00:00
Alvin Chan
6288c8b08e
Use relative paths when previewing file locations ( #2238 )
...
* Use relative paths when previewing file locations
Example: ALEFindReferences -relative
2019-01-27 10:18:20 +00:00
w0rp
20b9dfdb4a
Fix #2195 - Handle the command key being missing
2019-01-27 09:12:59 +00:00
w0rp
6e9040da75
Merge pull request #2131 from 0mco/master
...
Parse more C/C++ compiler options
2019-01-26 22:10:48 +00:00
w0rp
0a9dc7b4ba
Merge pull request #2245 from andrewimeson/adi/add-ksh-support
...
Add better ksh support
2019-01-26 22:04:29 +00:00
w0rp
452460b8cd
Merge pull request #2241 from bk2204/lsp-detect-hook
...
Add a hook to detect LSP project root
2019-01-26 19:40:45 +00:00
w0rp
cf14d0aa53
#2132 Unify temporary file management in command.vim
2019-01-26 19:33:52 +00:00
brian m. carlson
6fc016ad05
Add additional ways to detect LSP project root
...
Currently, we detect the linter root based on a variety of techniques.
However, these techniques are not foolproof. For example, clangd works
fine for many things without a compile_commands.json file, and Go
projects may be built outside of the GOPATH to take advantage of Go
1.11's automatic module support.
Add global and buffer-specific variables to allow the user to specify
the root, either as a string or a funcref. Make the funcrefs accept the
buffer number as an argument to make sure that they can function easily
in an asynchronous environment.
We define the global variable in the main plugin, since the LSP linter
code is not loaded unless required, and we want the variable to be able
to be read correctly by :ALEInfo regardless.
2019-01-26 04:46:41 +00:00
Andrew Imeson
a6de3f3727
Add better detection for KornShell/ksh
2019-01-24 14:14:49 -05:00
Louis Xu
8037f472ef
Parse more C/C++ compiler options
2019-01-24 09:44:52 +08:00
Alvin Chan
f12d312aa4
Add babylon
as default Prettier parser ( #2220 )
...
* Mimic Prettier's default parser by setting it to `babylon`
* Add tests to check default Prettier `parser`
* Set Prettier default parser based on version
* Update the comment to explain the reason for an explicit default
2019-01-22 10:24:15 +00:00
Andrey Popp
d0284f22ea
Add textDocument/typeDefinition for LSP ( #2226 )
...
* Add textDocument/typeDefinition for LSP
Doc to spec https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition
This works like textDocument/definition but resolves a location of a
type of an expression under the cursor.
I'm not sure what to do with tsserver though.
* Fix passing column to LSP
* test_go_to_definition: wording
* Add tests for textDocument/typeDefinition
* Add docs for textDocument/typeDefinition
2019-01-21 23:06:28 +00:00
w0rp
a4932679b5
Merge pull request #2224 from andreypopp/andreypopp/lsp-hover-fix-column
...
Adjust column to be 0-based for LSP messages
2019-01-21 21:11:02 +00:00
Andrey Popp
bcf63eea96
Request LSP completion for the next col after the cursor
2019-01-21 23:19:47 +03:00
Andrey Popp
2e85eed756
Fix ale#lsp#message#* to convert column to 0-based
...
This is what LSP specifies.
2019-01-21 17:40:33 +03:00
Michael Phillips
bd1e639681
Add ktlint fixer support.
2019-01-20 19:39:47 -06:00
Andrey Popp
d6d6fcf928
End position in LSP range is exclusive
...
From LSP spec:
> A range in a text document expressed as (zero-based) start and end
> positions. A range is comparable to a selection in an editor. Therefore
> the end position is exclusive.
2019-01-19 18:50:21 +03:00
Jason Kim
8b0879212f
Improve location list behavior on split windows of same buffer.
2019-01-16 17:15:47 -08:00
w0rp
c0b2090fbb
#2132 Move CreateTemporaryFileForJob calls into FormatCommand
2019-01-12 18:34:26 +00:00
w0rp
6644563949
#2132 Remove the need for the hidden add_newline option by tweaking the flow command
2019-01-12 13:14:29 +00:00
w0rp
d8a53cc7a5
Merge pull request #2191 from davidvandebunte/fixCompDbDir
...
bugfix: c.vim: Pull build directory from compilation database
2019-01-10 18:59:13 +00:00
TANIGUCHI Masaya
fabebb3a47
Add textlint for Asciidoc and add it to Fixers ( #2193 )
...
* Add textlint for asciidoc
* Add textlint --fix
2019-01-10 18:53:45 +00:00
François-Xavier Carton
4bbb10b46a
Cflags parser: fix special chars matching algorithm
2019-01-09 16:53:36 +01:00