summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
AgeCommit message (Collapse)Author
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
2018-09-20Fix #1938 - Set a default value for an undefined variablew0rp
2018-09-18Merge pull request #1928 from felipesere/masterw0rp
To avoid blocking build tools, suspend ALE when suspending vim
2018-09-17Join the ALECleanupGroup and ensure we don't run cleanup if ale.vim isn't loadedFelipe Sere
2018-09-16To avoid blocking build tools, suspend ALE when suspending vimFelipe Sere
2018-09-14#1889 Add support for automatically previewing messages based on the cursor ↵w0rp
position
2018-08-04Explicitly disable ALE for NeoVim versions below 0.2.0w0rp
2018-07-20Fix #1631 - Disable balloon support for terminals by defaultw0rp
2018-07-12Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIRw0rp
2018-07-04Optimise ale#Var a littlew0rp
2018-07-04Remove deprecated code for the 2.0 releasev2.0.0w0rp
2018-06-19Move the initialization of augroups to then events filew0rp
2018-06-19Avoid calling ALE cleanup code if ALE never tried to check a bufferw0rp
2018-05-28Indicate things to be removed in version 2.0w0rp