summaryrefslogtreecommitdiff
path: root/plugin
AgeCommit message (Collapse)Author
2023-03-08wip: Add error on lint execution failurecos
Reports errors on failure to execute linters if `ale_error_on_lint_fail` is set. Bug: It appears the end_lnum is ignored. The scope for an error like this one should likely be the entire file. Please comment at https://github.com/dense-analysis/ale/issues/4060 if having any thoughts at all about this suggested change.
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-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>
2022-12-25Close #4396 - Enable virtualtext by defaultw0rp
Wherever it's supported, enable virtualtext by default.
2022-12-25Close #4397 - Add human-readable values for g:ale_virtualtext_cursorw0rp
2022-11-25fix: missing plug mapping `ale_go_to_implementation` (#4337)U1s2e3r4n5a6m7e
Co-authored-by: Tiffany <taftaftesed@gmail.com>
2022-09-08Fix typo in plug mapping for `ale_go_to_implementation_in_vsplit` (#4304)Nate Pinsky
2022-05-27Allow customization of all floating window borders (#4215)Devin J. Pohly
* Allow customization of all floating window borders Users may not necessarily want the same border character for top+bottom or left+right, so allow all eight border characters to be configured in g:ale_floating_window_border. For backwards compatibility, the old rules are still applied if only six elements are given. * Reorder popup border array for compatibility
2022-04-30Add ALEGoToImplementation (#4160)godbless
* Add go to implementation * Add test cases for GoToImplementation * Add documentation for GoToImplementation
2022-04-01Fix test for echoing messagesw0rp
The previous linter rule about stray echo lines has been restored, and now all problems for custom linting rules can be ignored by adding a comment above problem lines.
2022-02-04Add ALEPopulateQuickfix and ALEPopulateLocList (#3761)David Briscoe
Closes #1810 Add ALEPopulateQuickfix and ALEPopulateLocList. They're not very useful with ale's default auto-populate behaviour, so their useful configuration is described in help.
2021-12-17ALEFileRename command added. (#4012)Dalius Dobravolskas
* ALEFileRename command added. This command renames file and uses tsserver `getEditsForFileRename` to fix import paths in Typescript files. * ale#util#Input fix * Even more fixes. * Linting error fix.
2021-07-25Add importMap option to deno Initialization Options (#3827)Arnold Chand
* feat(deno): move init options to handlers * feat(deno): add deno lsp support for js files * feat(deno): use default map option * feat(docs): add deno import map option * feat(deno): add tests for importMap option * fix(deno): use full path in importMap * feat(deno): remove deno as linter for js, separate PR * fix(deno): test for executable * fix(deno-test): include filename to simplify function
2021-07-25Python support poetry (#3834)Daniel Roseman
* Add poetry support to python linters and black fixer. * Update python.vim to detect poetry project. * Update ale.vim, add an option for poetry `g:ale_python_auto_poetry`. * Update ale-python.txt, add poetry support. * Add and update poetry related tests. Co-authored-by: unc0 <unc0@users.noreply.github.com>
2021-03-01Add borders for floating windows in Neovim (#3603)Yen3
* Add borders for floating windows in Neovim * Add docs for floating window border setting Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2021-03-01#3599 - Use ale_root instead of ale_lsp_rootw0rp
The `ale_lsp_root` setting is now deprecated, and `ale_root` should be used instead. The setting will be used for both setting the root easily for LSP linters, and for running other linters over whole projects.
2021-02-06#3362 Disable LSP/tsserver hints/suggestions by defaultw0rp
2021-01-14Add nvim floating window support (replaces #3314) (#3470)Kevin Clark
* Add nvim floating window hover support * Add configuration for float to replace preview * preview#ShowFloating: qualify local variables * Configure floating preview usecases individually Also: * Extract floating preview to its own file. * Ignore 'stay_here' option. Moving into the floating preview window seems confusing at best. * Re-use existing floating preview window if it's still up. * Flush out floating preview documentation. * Watch cursor position changes per window Floating previews open a new window, so when that window is written to, it moves briefly there at a different position than the original window. This makes repeated positions detected when positions are tracked at a s: level. Instead, we change the variable to window scoped, which only fires a message if the cursor has changed from the last position in *that window*. * g:ale_floating_preview cleanup * floating_preview: add ALEDetail tests * Fix fecs test missing runtime call * Add ALEHover floating preview tests Co-authored-by: Jan-Grimo Sobez <jan-grimo.sobez@phys.chem.ethz.ch>
2020-11-21Use has('gui_running') instead of has('gui')w0rp
2020-11-21Close #2727 - Add a hover-only setting for balloonsw0rp
2020-11-21Fix #3332 - Modify everything for rename/actionsw0rp
ALE now just modifies every open buffer for rename and actions, and sets up a one-time use BufEnter event to reload buffers that are changed so you don't have to think about what to do with changed buffers.
2020-11-21Close #1466 - Add GVIM refactor menu supportw0rp
Code actions and ALERename now appear in the right click context menu for GVim by default.
2020-11-14Update documentation for code actions and renamew0rp
2020-11-14Support for LSP/tsserver Code Actions (#3437)Dalius Dobravolskas
* Added tsserver and LSP code action support. * tsserver refactors support added. * Handling special case when new text is added after new line symbol. * ale#code_action#ApplyChanges simplified. * Initial attempt on LSP Code Actions. * workspace/executeCommand added. * Some null checks added. * Add last column to LSP Code Action message. * Pass diagnostics to LSP code action. Previously ApplyChanges code was applied from top-to-bottom that required extra parameters to track progress and there was bug. I have changed code to bottom-to-top approach as that does not require those extra parameters and solved the bug. Tested with typescript-language-server and it is working.
2020-10-15#3332 Implement :ALERename! for ignoring errorsw0rp
:ALERename! now ignores errors for files that cannot be modified, and modifies all other files.
2020-09-08Close #3333 - Add an ALECompletePost eventw0rp
Add an `ALECompletePost` event along with everything needed to make it useful for its primary purpose: fixing code after inserting completions. * `ALEFix` can now be called with a bang (`!`) to suppress errors. * A new `ALELintStop` command lets you stop linting, and start it later.
2020-09-06Close #3268 - Implement :ALEImportw0rp
A new command, `:ALEImport`, has been added, which lets you import words at your cursor if a completion provider can provide a completion for that word which includes some additional text changes.
2020-08-23Close #2556 - Support filename mappingw0rp
ALE now supports mapping files between different systems for running linters and fixers with Docker, in virtual machines, in servers, etc.
2020-08-18Remove features deprecated in previous versionsw0rp
2020-08-04#1532 - Display hover information on CursorHoldw0rp
2020-04-15Closes #3019 - Implement default navigationw0rp
Default navigation for commands that jump to new locations has been implemented with the `ale_default_navigation` variable, and all commands that jump to locations now support `-tab`, `-split`, or `-vsplit` arguments for overriding the default navigation behavior.
2020-03-11Fixes #2982 - Implement g:ale_exclude_highlightsw0rp
Particular highlights can now be excluded by providing Lists of regular expressions.
2019-10-12Add option to show hover messages in preview.Ildar Akhmetgaleev
Add new option 'ale_hover_to_preview' to show hover messages in preview window.
2019-09-12Add ALERename (tsserver & LSP), ALEOrganizeImports (tsserver) and auto ↵Jerko Steiner
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-08-02Fix #2668 - Set g:ale_go_go111modulew0rp
2019-06-10Lint on InsertLeave, not in insert mode by defaultw0rp
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-04-23Close #1753 - Implement minimum viable integration with Deopletew0rp
2019-03-08Fix #2326 - ALEComplete no longer replaces completeoptw0rp
2019-02-10Supporting filtered jump (#2279)Théo Cavignac
* 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-06Update syntax checkingw0rp
* Line continuation characters should be on the same lines. * .vim file line indentation should be a multiple of 4.
2019-01-27Use relative paths when previewing file locations (#2238)Alvin Chan
* Use relative paths when previewing file locations Example: ALEFindReferences -relative
2019-01-26Add additional ways to detect LSP project rootbrian m. carlson
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-21Add textDocument/typeDefinition for LSP (#2226)Andrey Popp
* 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-08Optimize ale#completion#Filter when prefix is ""Jerko Steiner
2019-01-07Add ability to manually trigger completion menu (#2177)Jerko Steiner
* Add ability to manually trigger completion menu * Mention :ALEComplete in completion docs * Add test for ALEComplete
2018-12-19Add versions of ALEGoToDefinition that open in splitsBen Kraft
This is just like `:ALEGoToDefinitionInTab`, only a (v)split instead of a tab. Fixes #2140.
2018-12-10#1520 - Add an :ALEDocumentation for tsserverw0rp
2018-11-06Move virtualtext handling to own fileLuan Santos
This allows cursor and virtualtext to be independently autoloaded.
2018-11-05Add support for nvim's virtualtext on cursorLuan Santos
- Add g:ale_virtualtext_cursor boolean to enable/disable it - Add g:ale_virtualtext_prefix to configure what prefix to use (default: '> ') - Requires neovim 0.3.2's unreleased API `nvim_buf_set_virtual_text`
2018-10-31Implement LSP symbol searchw0rp