mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00: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)
|
function M.on_attach(client, buf)
|
||||||
if client.supports_method("textDocument/formatting") then
|
if client.supports_method("textDocument/formatting") then
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
group = vim.api.nvim_create_augroup("LspFormat", {}),
|
group = vim.api.nvim_create_augroup("LspFormat." .. buf, {}),
|
||||||
buffer = buf,
|
buffer = buf,
|
||||||
callback = function()
|
callback = function()
|
||||||
if M.autoformat then
|
if M.autoformat then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue