Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement support for NeoVim's more robust hightlighting API #1274

@da-x

Description

@da-x

I am not sure whether it is a limitation of VIM or ALE, so I hope anyone can clarify.

The problem is the following:

Steps:

  1. Suppose I'm editing on any file type, and ALE has marked lines 1, 4, and 5 as warnings
  2. I remove line 2. Now, ALE should move the highlights of 4 and 5 to line 3 and 4, immediately, and before even re-running the linter. However, it does not happen.

Depending on the file type and on other configs, I need to save or not save the file I'm editing for ALE to relint the file. Depending on the linter, it may take some time to for ALE to update the highlights (suppose a second or so).

The most troubling scenario is where I have, say - 10 lines consisting of 'imports' relevant to the programming language I am editing, and a few of them are marked 'unused imports'. If I go about and try to delete the unused imports starting from the top, I mess up deleting the wrong lines, because the highlights do not move only until I let ALE relint the file.

This issue also applies to intra-line highlights.

The bottom question is: Shouldn't ALE immediately update highlights according to removed added/removed text regarding-less of the linting process?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions