mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 03:09:07 +02:00
fix(autoformat): make buf part of the autocmd group name
This commit is contained in:
parent
0e6b710627
commit
1bc029969e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue