Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Managing undo history #879

@piersolenski

Description

@piersolenski

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

Hey! I'm moving from Neoformat to null-ls. I used to use Neoformat with https://github.com/Pocco81/AutoSave.nvim. null-ls has a way to format on save https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Formatting-on-save#code. Each time a code change is made or the text changes, the save functionality is run. That means it's generally saved twice. So when you try to undo the last change, it's undoing to the last formatted rather than the actual code content changing. This means you need to undo twice, and it can be a bit visually jumpy whilst it's trying to format you go through the changes. Neoformat used to handle this like so, https://github.com/sbdchd/neoformat#managing-undo-history - is there a way to do this with null-ls? Thanks!

Help

No

Implementation help

No response

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