wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.82k stars 266 forks source link

Processing InsertEnter AutoCommands for "*" error #965

Closed c4dr01d closed 2 years ago

c4dr01d commented 2 years ago

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"


- `git --version`:

git version 2.37.0


- Operating system/version:
Arch Linux

- Terminal name/version:

kitty 0.25.2 created by Kovid Goyal


### Steps to reproduce
1. Open neovim
2. Open a file

### Actual behaviour
Display error:

Error detected while processing InsertEnter Autocommands for "*": E5108: Error executing lua ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:165: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:142: Vim(source):E5113: Error while calling lua chunk: ...pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua:1: module 'cmp' not found: stack traceback: [C]: in function 'cmd' ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:165: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:161> [string ":lua"]:1: in main chunk



### Expected behaviour
File opened

### packer files

<details>
<summary>Plugin specification file(s)</summary>

Post or link your plugin specification files here, if you aren't able to provide a minimal
reproducer

</details>

<details>
<summary>packer log file</summary>

Post the contents of ~/.cache/nvim/packer.nvim.log here

</details>

<details>
<summary>packer compiled file</summary>

Post the contents of `packer_compiled.vim` here

</details>
andrewjwaggoner commented 2 years ago

I'm encountering the same error, but my configuration isn't standard. For me, this is occuring only on empty buffers. Just thought I'd throw my error in here in case it's not my fault, and helpful.

oeyoews commented 2 years ago

image @c4dr01d

c4dr01d commented 2 years ago

@oeyoews I installed cmp, also generated new version of packer_compiled.lua

smjonas commented 2 years ago

Please share your packer configuration.

c4dr01d commented 2 years ago

I just re-sort my lazy loading sequence, let cmp_luasnip load after cmp and LuaSnip

aro1999 commented 1 year ago

@c4dr01d Could you clarify the solution please?

c4dr01d commented 1 year ago

@aro1999 Loading order:

  1. cmp
  2. luasnip
  3. cmp_luasnip