fix(autoformat): make buf part of the autocmd group name
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user