packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

InsertEnter Autocommands cause packer load plugin failed

Open lost22git opened this issue 3 years ago • 0 comments

there is an error if nvim-cmp lazyload after vim.filetype

Error detected while processing InsertEnter Autocommands for "*":
E5108: Error executing lua ...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:179: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:118: Vim(lua):E5108: Error executing lua ...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:179: Vim(echomsg):E114: Missing quote: \"Error in packer_compiled: ...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:168: Vim(append):Error executing lua callback: ...obal\apps\neovim\current\share\nvim\runtime\filetype.lua:22: Error executing lua: ...obal\apps\neovim\current\share\nvim\runtime\filetype.lua:23: Vim(append):Error executing lua callback: vim/keymap.lua:127: E31: No such mapping
stack traceback:
	[C]: in function 'cmd'
	...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:179: in function <...ata\site\pack\packer\opt\packer.nvim/lua/packer/load.lua:175>
	[string ":lua"]:1: in main chunk

ERROR

use {
  'hrsh7th/nvim-cmp',
  module = {"cmp"},
  event = { "InsertEnter", "CmdlineEnter" },
  config = conf.cmp
}

OK

use {
  'hrsh7th/nvim-cmp',
  module = {"cmp","vim.filetype"},
  event = { "InsertEnter", "CmdlineEnter" },
  config = conf.cmp
}

This problem will also occur if the Telescope is configured in this way

lost22git avatar Dec 08 '22 10:12 lost22git