Update formatting autocommand for Neovim 0.8.0

main
Ensar Sarajčić 2022-10-21 08:12:08 +02:00
parent 589742e801
commit f93ca4896e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ local function on_attach(client, bufnr)
vim.api.nvim_clear_autocmds({ buffer = bufnr, group = au_id }) vim.api.nvim_clear_autocmds({ buffer = bufnr, group = au_id })
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
group = au_id, group = au_id,
callback = vim.lsp.buf.formatting_seq_sync, callback = function() vim.lsp.buf.format() end,
buffer = bufnr, buffer = bufnr,
}) })
end end