From 1bc029969e4376d88ff5def1594b1ff106728706 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 1 Jan 2023 13:15:12 +0100 Subject: [PATCH] fix(autoformat): make buf part of the autocmd group name --- lua/plugins/lsp/format.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/lsp/format.lua b/lua/plugins/lsp/format.lua index 1c42b5c5..01dabf4c 100644 --- a/lua/plugins/lsp/format.lua +++ b/lua/plugins/lsp/format.lua @@ -26,7 +26,7 @@ end function M.on_attach(client, buf) if client.supports_method("textDocument/formatting") then vim.api.nvim_create_autocmd("BufWritePre", { - group = vim.api.nvim_create_augroup("LspFormat", {}), + group = vim.api.nvim_create_augroup("LspFormat." .. buf, {}), buffer = buf, callback = function() if M.autoformat then