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.83k stars 266 forks source link

Error Missing quote (lua/packer/load.lua:139) #899

Open vzytoi opened 2 years ago

vzytoi commented 2 years ago

Hey, I tried to install spellsitter and I have a missing quote error. At first I thought that it came from spellsitter since I can't reproduce the error without spellsitter installed but it seems to come from packer itself. Basically when I start nvim it throw this error:

Error detected while processing BufReadPost Autocommands for "*": 
E5108: Error executing lua .../m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: Vim(echomsg):E114: Missing quote: "Error in packer_comiled: .../m/site/packer/start/packer.nvim/lua/packer/load.lua:139: Vim(packadd):E5113: Erstack traceback:
[C]: in function 'cmd'
.../m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: in function <...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:161>
packer log file [WARN Tue 15 Mar 2022 07:03:57 PM CET 73755768126] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:622: packer_plugins table is nil! Cannot run packer.status()! [WARN Tue 15 Mar 2022 07:06:37 PM CET 233811523684] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:622: packer_plugins table is nil! Cannot run packer.status()! [WARN Tue 15 Mar 2022 07:06:44 PM CET 240178008119] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:622: packer_plugins table is nil! Cannot run packer.status()! [WARN Sun 10 Apr 2022 03:51:18 PM CEST 10979581846674] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit acd0155 of nvim-treesitter/nvim-treesitter [WARN Sun 01 May 2022 05:44:39 PM CEST 150118614074] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit bc25a6a of nvim-treesitter/nvim-treesitter [WARN Sun 01 May 2022 05:44:39 PM CEST 150119081134] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit f9df984 of numToStr/Comment.nvim [WARN Sun 01 May 2022 05:44:39 PM CEST 150119146895] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit 385580e of hoob3rt/lualine.nvim [WARN Sun 01 May 2022 05:44:39 PM CEST 150119353572] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit b5433f9 of hrsh7th/nvim-cmp [WARN Sun 01 May 2022 05:44:39 PM CEST 150119374657] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit fae808a of hrsh7th/nvim-cmp
packer compiled file -- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcall(function() local time local profile_info local should_profile = false if should_profile then local hrtime = vim.loop.hrtime profile_info = {} time = function(chunk, start) if start then profile_info[chunk] = hrtime() else profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 end end else time = function(chunk, start) end end local function save_profiles(threshold) local sorted_times = {} for chunk_name, time_taken in pairs(profile_info) do sorted_times[#sorted_times + 1] = {chunk_name, time_taken} end table.sort(sorted_times, function(a, b) return a[2] > b[2] end) local results = {} for i, elem in ipairs(sorted_times) do if not threshold or threshold and elem[2] > threshold then results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' end end _G._packer = _G._packer or {} _G._packer.profile_output = results end time([[Luarocks path setup]], true) local package_path_str = "/home/cyprien/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/cyprien/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/cyprien/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/cyprien/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/home/cyprien/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end if not string.find(package.cpath, install_cpath_pattern, 1, true) then package.cpath = package.cpath .. ';' .. install_cpath_pattern end time([[Luarocks path setup]], false) time([[try_loadstring definition]], true) local function try_loadstring(s, component, name) local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) if not success then vim.schedule(function() vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) end) end return result end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { ["Comment.nvim"] = { config = { "\27LJ\2\n§\3\0\1\b\0\18\00006\1\0\0'\3\1\0B\1\2\2+\2\0\0009\3\2\0009\4\2\0019\4\3\4\5\3\4\0X\3\a€6\3\0\0'\5\4\0B\3\2\0029\3\5\3B\3\1\2\18\2\3\0X\3\16€9\3\6\0009\4\6\0019\4\a\4\4\3\4\0X\3\5€9\3\6\0009\4\6\0019\4\b\4\5\3\4\0X\3\6€6\3\0\0'\5\4\0B\3\2\0029\3\t\3B\3\1\2\18\2\3\0006\3\0\0'\5\n\0B\3\2\0029\3\v\0035\5\14\0009\6\2\0009\a\2\0019\a\f\a\5\6\a\0X\6\2€'\6\r\0X\a\1€'\6\15\0=\6\16\5=\2\17\5D\3\2\0\rlocation\bkey\16__multiline\1\0\0\14__default\tline\28calculate_commentstring&ts_context_commentstring.internal\30get_visual_start_location\6V\6v\fcmotion\24get_cursor_location#ts_context_commentstring.utils\nblock\nctype\18Comment.utils\frequireN\1\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0003\3\3\0=\3\5\2B\0\2\1K\0\1\0\rpre_hook\1\0\0\0\nsetup\fComment\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/Comment.nvim", url = "https://github.com/numToStr/Comment.nvim" }, ["accelerated-jk.nvim"] = { config = { "require('accelerated-jk').setup()" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/accelerated-jk.nvim", url = "https://github.com/xiyaowong/accelerated-jk.nvim" }, ["better-escape.nvim"] = { config = { "\27LJ\2\n\\\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\fmapping\1\0\0\1\3\0\0\akj\ajk\nsetup\18better_escape\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/better-escape.nvim", url = "https://github.com/max397574/better-escape.nvim" }, ["cmp-calc"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/cmp-calc", url = "https://github.com/hrsh7th/cmp-calc" }, ["cmp-path"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/cmp-path", url = "https://github.com/hrsh7th/cmp-path" }, ["cmp-tabnine"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/cmp-tabnine", url = "https://github.com/tzachar/cmp-tabnine" }, ["coc.nvim"] = { config = { "require('plugins.coc')" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/coc.nvim", url = "https://github.com/neoclide/coc.nvim" }, ["diffview.nvim"] = { config = { "\27LJ\2\nc\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\15file_panel\1\0\0\1\0\1\rposition\vbottom\nsetup\rdiffview\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/diffview.nvim", url = "https://github.com/sindrets/diffview.nvim" }, ["file-line"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/file-line", url = "https://github.com/bogado/file-line" }, gruvbox = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/gruvbox", url = "https://github.com/morhetz/gruvbox" }, ["lspkind-nvim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/lspkind-nvim", url = "https://github.com/onsails/lspkind-nvim" }, ["lualine.nvim"] = { config = { "require('plugins.lualine').config()" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/hoob3rt/lualine.nvim" }, ["nest.nvim"] = { config = { "require('mappings')" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/nest.nvim", url = "https://github.com/LionC/nest.nvim" }, ["nvim-autopairs"] = { config = { "require('nvim-autopairs').setup{}" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/nvim-autopairs", url = "https://github.com/windwp/nvim-autopairs" }, ["nvim-biscuits"] = { config = { "\27LJ\2\n}\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\19default_config\1\0\1\18prefix_string\5\1\0\1\21cursor_line_only\2\nsetup\18nvim-biscuits\frequire\0" }, load_after = { ["nvim-treesitter"] = true }, loaded = false, needs_bufread = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-biscuits", url = "https://github.com/code-biscuits/nvim-biscuits" }, ["nvim-cheat.sh"] = { commands = { "Cheat" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-cheat.sh", url = "https://github.com/RishabhRD/nvim-cheat.sh" }, ["nvim-cmp"] = { config = { "require('plugins.cmp').config()" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/nvim-cmp", url = "https://github.com/hrsh7th/nvim-cmp" }, ["nvim-tree-docs"] = { load_after = { ["nvim-treesitter"] = true }, loaded = false, needs_bufread = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-tree-docs", url = "https://github.com/nvim-treesitter/nvim-tree-docs" }, ["nvim-treesitter"] = { after = { "nvim-biscuits", "nvim-tree-docs", "nvim-treesitter-textobjects", "nvim-ts-context-commentstring", "nvim-treesitter-textsubjects" }, config = { "require('plugins.treesitter')" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, ["nvim-treesitter-textobjects"] = { load_after = { ["nvim-treesitter"] = true }, loaded = false, needs_bufread = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects", url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects" }, ["nvim-treesitter-textsubjects"] = { load_after = { ["nvim-treesitter"] = true }, loaded = false, needs_bufread = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textsubjects", url = "https://github.com/RRethy/nvim-treesitter-textsubjects" }, ["nvim-ts-context-commentstring"] = { load_after = { ["nvim-treesitter"] = true }, loaded = false, needs_bufread = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/nvim-ts-context-commentstring", url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" }, ["nvim-web-devicons"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/kyazdani42/nvim-web-devicons" }, ["packer.nvim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/packer.nvim", url = "https://github.com/wbthomason/packer.nvim" }, ["paperplanes.nvim"] = { config = { "\27LJ\2\nZ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\rregister\6*\rprovider\nix.io\nsetup\16paperplanes\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/paperplanes.nvim", url = "https://github.com/rktjmp/paperplanes.nvim" }, ["persistence.nvim"] = { config = { "require('persistence').setup()" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/persistence.nvim", url = "https://github.com/folke/persistence.nvim" }, ["plenary.nvim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, popfix = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/popfix", url = "https://github.com/RishabhRD/popfix" }, spacecamp = { loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/spacecamp", url = "https://github.com/jaredgorski/spacecamp" }, ["spellsitter.nvim"] = { config = { "\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16spellsitter\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/spellsitter.nvim", url = "https://github.com/lewis6991/spellsitter.nvim" }, ["targets.vim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/targets.vim", url = "https://github.com/wellle/targets.vim" }, ["telescope-fzf-native.nvim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" }, ["telescope.nvim"] = { config = { "require('plugins.telescope').config()" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, ["toggleterm.nvim"] = { commands = { "ToggleTerm", "TermExec" }, config = { "require('plugins.term').config()" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/toggleterm.nvim", url = "https://github.com/akinsho/toggleterm.nvim" }, ["trim.nvim"] = { config = { "require('trim').setup({})" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/trim.nvim", url = "https://github.com/cappyzawa/trim.nvim" }, undotree = { commands = { "UndotreeShow", "UndotreeToggle", "UndotreeFocus", "UndotreeHide" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/undotree", url = "https://github.com/mbbill/undotree" }, ["vCoolor.vim"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vCoolor.vim", url = "https://github.com/KabbAmine/vCoolor.vim" }, ["vim-MvVis"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-MvVis", url = "https://github.com/Jorengarenar/vim-MvVis" }, ["vim-closetag"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/vim-closetag", url = "https://github.com/alvan/vim-closetag" }, ["vim-cool"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-cool", url = "https://github.com/romainl/vim-cool" }, ["vim-doge"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-doge", url = "https://github.com/kkoomen/vim-doge" }, ["vim-fugitive"] = { commands = { "G", "Gdiff" }, loaded = false, needs_bufread = true, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/vim-fugitive", url = "https://github.com/tpope/vim-fugitive" }, ["vim-indent-object"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-indent-object", url = "https://github.com/michaeljsmith/vim-indent-object" }, ["vim-lastplace"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-lastplace", url = "https://github.com/farmergreg/vim-lastplace" }, ["vim-sleuth"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-sleuth", url = "https://github.com/tpope/vim-sleuth" }, ["vim-sneak"] = { keys = { { "n", "S" }, { "n", "s" } }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/vim-sneak", url = "https://github.com/justinmk/vim-sneak" }, ["vim-startuptime"] = { commands = { "StartupTime" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/cyprien/.local/share/nvim/site/pack/packer/opt/vim-startuptime", url = "https://github.com/dstein64/vim-startuptime" }, ["vim-surround"] = { loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/vim-surround", url = "https://github.com/tpope/vim-surround" }, ["zen-mode.nvim"] = { config = { "\27LJ\2\n:\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\rzen-mode\frequire\0" }, loaded = true, path = "/home/cyprien/.local/share/nvim/site/pack/packer/start/zen-mode.nvim", url = "https://github.com/folke/zen-mode.nvim" } } time([[Defining packer_plugins]], false) -- Config for: paperplanes.nvim time([[Config for paperplanes.nvim]], true) try_loadstring("\27LJ\2\nZ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\rregister\6*\rprovider\nix.io\nsetup\16paperplanes\frequire\0", "config", "paperplanes.nvim") time([[Config for paperplanes.nvim]], false) -- Config for: accelerated-jk.nvim time([[Config for accelerated-jk.nvim]], true) require('accelerated-jk').setup() time([[Config for accelerated-jk.nvim]], false) -- Config for: Comment.nvim time([[Config for Comment.nvim]], true) try_loadstring("\27LJ\2\n§\3\0\1\b\0\18\00006\1\0\0'\3\1\0B\1\2\2+\2\0\0009\3\2\0009\4\2\0019\4\3\4\5\3\4\0X\3\a€6\3\0\0'\5\4\0B\3\2\0029\3\5\3B\3\1\2\18\2\3\0X\3\16€9\3\6\0009\4\6\0019\4\a\4\4\3\4\0X\3\5€9\3\6\0009\4\6\0019\4\b\4\5\3\4\0X\3\6€6\3\0\0'\5\4\0B\3\2\0029\3\t\3B\3\1\2\18\2\3\0006\3\0\0'\5\n\0B\3\2\0029\3\v\0035\5\14\0009\6\2\0009\a\2\0019\a\f\a\5\6\a\0X\6\2€'\6\r\0X\a\1€'\6\15\0=\6\16\5=\2\17\5D\3\2\0\rlocation\bkey\16__multiline\1\0\0\14__default\tline\28calculate_commentstring&ts_context_commentstring.internal\30get_visual_start_location\6V\6v\fcmotion\24get_cursor_location#ts_context_commentstring.utils\nblock\nctype\18Comment.utils\frequireN\1\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0003\3\3\0=\3\5\2B\0\2\1K\0\1\0\rpre_hook\1\0\0\0\nsetup\fComment\frequire\0", "config", "Comment.nvim") time([[Config for Comment.nvim]], false) -- Config for: coc.nvim time([[Config for coc.nvim]], true) require('plugins.coc') time([[Config for coc.nvim]], false) -- Config for: telescope.nvim time([[Config for telescope.nvim]], true) require('plugins.telescope').config() time([[Config for telescope.nvim]], false) -- Config for: lualine.nvim time([[Config for lualine.nvim]], true) require('plugins.lualine').config() time([[Config for lualine.nvim]], false) -- Config for: zen-mode.nvim time([[Config for zen-mode.nvim]], true) try_loadstring("\27LJ\2\n:\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\rzen-mode\frequire\0", "config", "zen-mode.nvim") time([[Config for zen-mode.nvim]], false) -- Config for: nvim-cmp time([[Config for nvim-cmp]], true) require('plugins.cmp').config() time([[Config for nvim-cmp]], false) -- Config for: nest.nvim time([[Config for nest.nvim]], true) require('mappings') time([[Config for nest.nvim]], false) -- Config for: diffview.nvim time([[Config for diffview.nvim]], true) try_loadstring("\27LJ\2\nc\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\15file_panel\1\0\0\1\0\1\rposition\vbottom\nsetup\rdiffview\frequire\0", "config", "diffview.nvim") time([[Config for diffview.nvim]], false) -- Config for: better-escape.nvim time([[Config for better-escape.nvim]], true) try_loadstring("\27LJ\2\n\\\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\2B\0\2\1K\0\1\0\fmapping\1\0\0\1\3\0\0\akj\ajk\nsetup\18better_escape\frequire\0", "config", "better-escape.nvim") time([[Config for better-escape.nvim]], false) -- Config for: nvim-autopairs time([[Config for nvim-autopairs]], true) require('nvim-autopairs').setup{} time([[Config for nvim-autopairs]], false) -- Config for: spellsitter.nvim time([[Config for spellsitter.nvim]], true) try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16spellsitter\frequire\0", "config", "spellsitter.nvim") time([[Config for spellsitter.nvim]], false) -- Command lazy-loads time([[Defining lazy-load commands]], true) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file G lua require("packer.load")({'vim-fugitive'}, { cmd = "G", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Gdiff lua require("packer.load")({'vim-fugitive'}, { cmd = "Gdiff", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file ToggleTerm lua require("packer.load")({'toggleterm.nvim'}, { cmd = "ToggleTerm", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeShow lua require("packer.load")({'undotree'}, { cmd = "UndotreeShow", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeFocus lua require("packer.load")({'undotree'}, { cmd = "UndotreeFocus", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeHide lua require("packer.load")({'undotree'}, { cmd = "UndotreeHide", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TermExec lua require("packer.load")({'toggleterm.nvim'}, { cmd = "TermExec", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Cheat lua require("packer.load")({'nvim-cheat.sh'}, { cmd = "Cheat", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file StartupTime lua require("packer.load")({'vim-startuptime'}, { cmd = "StartupTime", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) time([[Defining lazy-load commands]], false) -- Keymap lazy-loads time([[Defining lazy-load keymaps]], true) vim.cmd [[nnoremap S lua require("packer.load")({'vim-sneak'}, { keys = "S", prefix = "" }, _G.packer_plugins)]] vim.cmd [[nnoremap s lua require("packer.load")({'vim-sneak'}, { keys = "s", prefix = "" }, _G.packer_plugins)]] time([[Defining lazy-load keymaps]], false) vim.cmd [[augroup packer_load_aucmds]] vim.cmd [[au!]] -- Filetype lazy-loads time([[Defining lazy-load filetype autocommands]], true) vim.cmd [[au FileType html ++once lua require("packer.load")({'vim-closetag'}, { ft = "html" }, _G.packer_plugins)]] vim.cmd [[au FileType php ++once lua require("packer.load")({'vim-closetag'}, { ft = "php" }, _G.packer_plugins)]] time([[Defining lazy-load filetype autocommands]], false) -- Event lazy-loads time([[Defining lazy-load event autocommands]], true) vim.cmd [[au BufRead * ++once lua require("packer.load")({'nvim-treesitter'}, { event = "BufRead *" }, _G.packer_plugins)]] vim.cmd [[au GUIEnter * ++once lua require("packer.load")({'spacecamp'}, { event = "GUIEnter *" }, _G.packer_plugins)]] vim.cmd [[au BufReadPre * ++once lua require("packer.load")({'persistence.nvim'}, { event = "BufReadPre *" }, _G.packer_plugins)]] vim.cmd [[au BufWritePre * ++once lua require("packer.load")({'vim-closetag', 'trim.nvim'}, { event = "BufWritePre *" }, _G.packer_plugins)]] time([[Defining lazy-load event autocommands]], false) vim.cmd("augroup END") if should_profile then save_profiles() end end) if not no_errors then error_msg = error_msg:gsub('"', '\\"') vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') end

Let me know if you think the error is from spellsitter so that I move this issue on their repo. Thank you for your time and have a good day! (:

Esequiel378 commented 1 year ago

I bypassed this issue by adding the .html2 extension to the file and then adding an auto command that set the filetype html to the .html2 files

vim.cmd [[
  augroup html2
    autocmd!
    autocmd BufNewFile,BufRead *.html2 set ft=html
  augroup end
]]