Skip to content

Commit

Permalink
fix(nvim): Don't trigger automcds when updating buffers after async f…
Browse files Browse the repository at this point in the history
…ormat

fixes #54
  • Loading branch information
mrjones2014 committed Aug 27, 2023
1 parent a512fce commit b90d947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/lua/my/lsp/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function M.setup_async_formatting()
vim.fn.winrestview(view)
if ctx.bufnr == vim.api.nvim_get_current_buf() then
vim.b.format_saving = true
vim.cmd.update()
vim.cmd.noautocmd('update')
vim.b.format_saving = false
end
end
Expand Down

0 comments on commit b90d947

Please sign in to comment.