Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

before_saving not being called? #56

Open
maxcountryman opened this issue Aug 31, 2022 · 2 comments
Open

before_saving not being called? #56

maxcountryman opened this issue Aug 31, 2022 · 2 comments

Comments

@maxcountryman
Copy link

This does not seem to work:

require("auto-save").setup({
    enabled = true,
    callbacks = {
        before_saving = function()
            vim.lsp.buf.formatting_sync()
        end
    }
})

The auto save happens, but the formatting does not; manually calling vim.lsp.buf.formatting_sync() works as expected.

@JiuRanYa
Copy link

same question

@kohane27
Copy link

Current workaround: using the fork https://github.com/AnonymusRaccoon/auto-save.nvim from #67 until it's merged. Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants