Browse Source

nixpkgs/neovim: fix bug in autocmd deletion

Thomas Dy 3 years ago
parent
commit
b76d26062a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .config/nixpkgs/neovim/lsp.lua

+ 1 - 1
.config/nixpkgs/neovim/lsp.lua

@@ -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,