Skip to content

confusing display with inline_highlighting #23

@emmanueltouzery

Description

@emmanueltouzery

I used live-command to wrap vim-abolish:

  use {'smjonas/live-command.nvim', commit='ce4b104ce702c7bb9fdff863059af6d47107ca61', config=function()
    require("live-command").setup {
      defaults = {
        -- inline_highlighting = false,
      },
      commands = {
        Norm = { cmd = "norm" },
        S = { cmd = "Subvert"}, -- must be defined before we import vim-abolish
      },
    }
  end}

With an input file of:

result
Result
RESULT

And when previewing this command:
%S/result/outcome

This is the display:
image

Ideally the display would be like neovim's :%s preview meaning resultoutcome

Disabling inline highlighting helps with that issue, but then whole lines are highlighted and it's not clear anymore what was changed.
Making a word-by-word diff would help in this case, I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions