tani / vim-jetpack

The lightning-fast plugin manager, alternative to vim-plug

Home Page:https://gist.asciidoctor.org/?github-tani/vim-jetpack/main//README.adoc&source-highlighter=highlightjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after update to lates commit (with paq style configuration)

mnabila opened this issue · comments

neovim version : NVIM v0.7.0-dev+1132-g15004473b

error message

Error detected while processing /home/nabil/Dotfiles/neovim/.config/nvim/init.lua:
E5100: Cannot convert given lua table: table should either have a sequence of positive integer keys or contain only string keys
E5113: Error while calling lua chunk: error converting argument 1
stack traceback:
        [C]: in function 'type'
        ...e/nvim/site/pack/jetpack/opt/vim-jetpack/lua/jetpack.lua:17: in function 'use'
        ...e/nvim/site/pack/jetpack/opt/vim-jetpack/lua/jetpack.lua:40: in function 'setup'
        /home/nabil/.config/nvim/lua/modules/jetpack/init.lua:4: in main chunk
        [C]: in function 'require'
        /home/nabil/.config/nvim/init.lua:12: in main chunk

init.lua

-- set neovim mapleader
vim.cmd('let mapleader=" "')

-- neovim basic configuration
require("modules.core.settings")

-- neovim package manager
-- require("modules.packer")
require("modules.jetpack")

-- neovim keybindings
require("modules.core.keymap")

modules.jetpack.init.lua

vim.cmd("packadd vim-jetpack")

local jetpack = require("jetpack")
jetpack.setup({
    { "tani/vim-jetpack", opt = 1 },
    { "dstein64/vim-startuptime", opt = true },

    -- interface
    "kyazdani42/nvim-web-devicons",
    "romgrk/barbar.nvim",
    "NTBBloodbath/galaxyline.nvim",
    "lukas-reineke/indent-blankline.nvim",
    { "kyazdani42/nvim-tree.lua", commit = "99d65af" },
    "nvim-telescope/telescope.nvim",
    "nvim-lua/popup.nvim",
    "nvim-lua/plenary.nvim",
    "nvim-treesitter/nvim-treesitter",
    "p00f/nvim-ts-rainbow",
    "windwp/nvim-ts-autotag",
    "norcalli/nvim-colorizer.lua",
    "rktjmp/lush.nvim",
    "mnabila/gruvboy.nvim",

    -- editor
    "stevearc/aerial.nvim",
    "folke/lsp-trouble.nvim",
    "mattn/gist-vim",
    "mattn/webapi-vim",
    "lewis6991/gitsigns.nvim",
    "mnabila/vim-header",
    "voldikss/vim-translator",
    "numToStr/Comment.nvim",
    "lukas-reineke/format.nvim",
    "machakann/vim-sandwich",
    "junegunn/vim-easy-align",
    "ray-x/go.nvim",
    { "ellisonleao/glow.nvim", ft = "markdown" },
    "nathom/filetype.nvim",

    -- completion
    "hrsh7th/nvim-cmp",
    "hrsh7th/cmp-buffer",
    "hrsh7th/cmp-nvim-lsp",
    "hrsh7th/cmp-nvim-lua",
    "hrsh7th/cmp-emoji",
    "hrsh7th/cmp-path",
    "hrsh7th/cmp-vsnip",
    "hrsh7th/vim-vsnip",
    "neovim/nvim-lspconfig",
    "mattn/emmet-vim",
    "windwp/nvim-autopairs",
})

// load plugins configuration

Thanks a lot. I have fixed it now. Cheers,