summaryrefslogtreecommitdiff
path: root/autoload
AgeCommit message (Collapse)Author
2023-09-08#4605 Use a single time for InsertLeave emulationw0rp
Use a single timer for InsertLeave emulation to optimise it for many buffers, and specifically lint the buffer we entered insert mode on.
2023-09-08Close #4605 - Emulate InsertLeave modew0rp
Use a repeating timer to emulate InsertLeave mode for users who have not rebound <C-c> to <Esc>, like many experienced Vim users do. This allows ALE to start linting when you finish typing by default without having to know about this quirk in Vim or Neovim.
2023-09-08#4454 Clean up root test directory testsw0rp
Combine cases into smaller tests of tests and remove tests we no longer need. Linter tests have been moved to where they should be.
2023-09-06Close #3368 - Supercharge :ALEInfow0rp
Make a series of sweeping changes to make :ALEInfo more useful. 1. Deprecate :ALEInfoToClipboard and support :ALEInfo -clipboard 2. Permit :ALEInfo -clip as a shorthand for :ALEInfo -clipboard 3. Support :ALEInfo -preview to render in the preview window 4. Support :ALEInfo -echo for the classic :ALEInfo mode 5. Change the default mode to 'preview', and make it configurable 6. Add syntax highlighting for ALEInfo in preview mode 7. Add a convenience to look up documentatation that explains itself 8. Don't show an empty 'Linter Variables' section
2023-09-06Add an option to save hidden buffersw0rp
When commands are run, it can be useful to just save the hidden buffers so language servers immediately get updated with changes to files without you having to manually save each file. You can now enable this by setting `g:ale_save_hidden` to `1`.
2023-09-05Close #4461 - Use rust-analyzer by defaultw0rp
Use rust-analyzer by default instead of rls, as rls has been deprecated.
2023-09-05Feature: add `forge fmt` as a fixer for Solidity files (#4598)Henrique Barcelos
* feat: add `forge fmt` as a fixer for Solidity
2023-09-05Improve ALEFix performance for neovim (#3974)Magnus Groß
* Avoid performance problems with setbufline() and Treesitter Call nvim_buf_set_lines() instead. Since this is a performance problem only in Neovim (Treesitter is only available there), it doesn't matter that this API is unavailable in Vim. Note: nvim_buf_set_lines() returns E5555, when set nomodifiable is on. Fixes #3669 * Avoid sign flickering The signs flickered because nvim_buf_set_lines() removes all signs from lines that it touches, which will immediately be readded by Ale (causing the brief flicker). This is intended behaviour in neovim [0]. Neovim itself faced this problem in their own LSP formatting sync, although they had the problem with marks instead of signs [1]. Similar to how neovim fixed it by storing and restoring the marks [2], we can do the same thing with signs. In fact it is easier with signs, because sign_placelist() will just ignore and skip invalid line numbers, so we don't need to filter signs that are not valid anymore. [0] https://github.com/neovim/neovim/issues/10880#issuecomment-526466042 [1] https://github.com/neovim/neovim/issues/14307 [2] https://github.com/neovim/neovim/pull/14630
2023-09-05fix(yaml): make actionlint respect config (#4584)Peter Benjamin
* fix(yaml): make actionlint respect config * docs: update actionlint docs * chore: update author & add description * test: move actionlint test to test/linter/
2023-08-20Support format xml file which haven't yet persisted at the disk (#4585)jiz4oh
Support format xml file which haven't yet persisted at the disk
2023-08-15Fix error loading "text" syntax for hover (#4574)Tomáš Janoušek
rust-analyzer sometimes returns a hover result with language being "text", but there's no syntax/text.vim, so this would fail with: Error detected while processing function <SNR>150_VimOutputCallback[6]..<lambda>8[1]..ale#lsp#HandleMessage[30]..ale#hover#HandleLSPResponse[42]..ale#floating_preview#Show[13]..<SNR>161_VimShow: line 13: E484: Cannot open file syntax/text.vim Only including the file when it actually exists fixes this.
2023-08-15yamlfmt (#4587)Matheus Werny
* Added the fixer, wrote tests and tested it
2023-08-05Close #4579 - Support numhl highlights for vim >= 8.2.3874Rodrigo Mesquita
In #2637, support for numhl highlights was added for nvim. In the meantime, vim added support for numhl highlights in patch 8.2.3874. This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
2023-08-01floatwin: use win_execute in NeoVim for commands when it exists (#4532)Oskar Haarklou Veileborg
2023-07-31Don't echom if not in normal mode (#4560)Amadeus Demarzi
2023-07-25Communicate support for markdown to the lsp server (#4450) (#4453)Wooter
2023-07-24Add erb-formatter support (#4546)Arash Mousavi
2023-07-24feat: enable golangci-lint by default (#4536)Craig Rodrigues
This replaces golint and gometalinter which are both deprecated
2023-07-24Add end_col of matched forbidden word (#4556)LittleKey
2023-06-27Remove golint supported-tools (#4535)Craig Rodrigues
golint has been deprecated and was archived in 2019
2023-05-06Add support for npm-groovy-lint (#4495)lucas-str
* Add support for npm-groovy-lint * Add doc and tests for npm-groovy-lint * Use ale#util#FuzzyJSONDecode instead of json_decode
2023-04-22Add fourmolu fixer (#4501)Pat Brisbin
* Add fourmolu fixer Fourmolu is aversion of Ormolu that supports configuration. This fixer was modeled after the Ormolu one, but using the "stack executable" approach of the Brittany and Stylish Haskell fixers. * Sort supported-tools.md
2023-03-31Added column alignment for errors (#4473)David le Blanc
2023-03-26Add support for `rustywind` fixer (#4477)Guillermo R. Roig Carralero
2023-03-14Fix `ale#util#GetBufferContents` and propagate use (#4457)Wilson E. Alvarez
* Use newline characters instead in ale#util#GetBufferContents * Propagate use of ale#util#GetBufferContents * Add ale#util#GetContentBuffer test
2023-03-08Clear virtualtext no matter how enabled (#4475)Daniel Harding
When toggling ALE off, clear the virtualtext even when g:ale_virtualtext_cursor is 'all'.
2023-03-07#2172 - Expand PATH in the shell for automatic virtualenvw0rp
2023-03-07Add deadnix linter (#4443)Albert Peschar
2023-02-21Fix #3616, #3903 - Use proper floating window borders in neovim (#4417)Oskar Haarklou Veileborg
* Fix #3616, #3903 - Use proper floating window borders in neovim * Compatibility w. length 6/7 ale_floating_window_border values
2023-02-08Attempt to fix auto virtualenv on Windowsw0rp
2023-02-08#2172 Auto PATH with ale_python_auto_virtualenvw0rp
Automatically set `PATH` for some Python linters that seem to need it when g:ale_python_auto_virtualenv or b:ale_python_auto_virtualenv is `1`.
2023-02-08Add support for lua-language-serverw0rp
2023-02-07Add alejandra for nix (#4435)Nathan Henrie
- Fixes https://github.com/dense-analysis/ale/issues/4434
2023-01-29diagnostics: support sending ALE output to Neovim's diagnostics API (#4345)Ben Boeckel
Support replacing ALE's display of problems with sending problems to the Neovim diagnostics API. :help g:ale_use_neovim_diagnostics_api Co-authored-by: David Balatero <dbalatero@users.noreply.github.com> Co-authored-by: Georgi Angelchev <angelchev@live.co.uk> Co-authored-by: w0rp <devw0rp@gmail.com>
2023-01-28Add `gopls format` as a Go fixerSean Enck
2023-01-27add: pycln as a python linter and fixer (#4415)Yining
this commit adds pycln as a Python linter and fixer, together with some tests and documentation. It addresses #4340 pycln repo: https://github.com/hadialqattan/pycln
2023-01-06Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clearw0rp
2023-01-04Fix #4410 - Ignore prop_add errorsw0rp
2022-12-30Fix #4408 - Trigger floating preview autocommand on BufWinLeave and ↵Leon
WinScrolled (#4409)
2022-12-27Fix #4331 - Shift line 0 errors to line 1 for virtual-textw0rp
2022-12-27Close #4401 - Use subtle defaults for virtual-textw0rp
Default virtual-text to the Comment highlight group and prefix virtual-text messages with comment text for each language by default. Messages can now be formatted with `%type%` to print the error type. The Vim 9.0 version has been updated in the Docker image to add test coverage for virtual-text.
2022-12-27#4400 - Remove virtual-text defaults from highlight.vimw0rp
2022-12-27Fix #4400 - Separate virtual text highlight groups to avoid errorsw0rp
2022-12-26Fix #4399 - Manage virtual-text state betterw0rp
2022-12-25Update ALE to v3.3.0w0rp
2022-12-25Close #4397 - Add human-readable values for g:ale_virtualtext_cursorw0rp
2022-12-25Enable ruff for Python by defaultw0rp
2022-12-22fix: ruff not registered as fixer (#4393)Yining
this commit fixes the issue reported at: https://github.com/dense-analysis/ale/issues/4301#issuecomment-1359289391 it also had some code refactored and tests added for ruff as fixer (missed in PR #4347).
2022-11-25Added support for more file types for clang-format. (#4367)Matheus
2022-11-23Fix bug in sqlfluff implementation & implement fixer support (#4365)Carl Smedstad
* Account for no sqlfluff output Avoid crashes when there isn't any output from sqlfluff. * Add supplort for sqlfluff as a fixer