|
@@ -98,7 +98,7 @@ null_ls.setup({
|
|
|
-- format on save
|
|
|
if client.resolved_capabilities.document_formatting then
|
|
|
for key, cmd in pairs(vim.api.nvim_get_autocmds({ group = group, buffer = bufnr })) do
|
|
|
- vim.api.nvim_del_autocmd(cmd)
|
|
|
+ vim.api.nvim_del_autocmd(cmd.id)
|
|
|
end
|
|
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
|
|
group = group,
|