Skip to content

Crash upon load #29

@MikolasJanota

Description

@MikolasJanota

Getting the following error (it seems repeatedly)

Error executing vim.schedule lua callback: function cmp_vimtex#count, line 3: Vim(let):E706: Argument of count() must be a List, String or Dictionary
stack traceback:
        [C]: in function 'cmp_vimtex#count'
        ...kickstart.nvim/lazy/cmp-vimtex/lua/cmp_vimtex/parser.lua:211: in function 'parse_entry'
        ...kickstart.nvim/lazy/cmp-vimtex/lua/cmp_vimtex/parser.lua:188: in function 'parse_type'
        ...kickstart.nvim/lazy/cmp-vimtex/lua/cmp_vimtex/parser.lua:116: in function 'callback'
        .../kickstart.nvim/lazy/cmp-vimtex/lua/cmp_vimtex/timer.lua:72: in function <.../kickstart.nvim/lazy/cmp-vimtex/lua/cmp_vimtex/timer.lua:66>

With the following setup in lazy

{
   'lervag/vimtex',
   lazy = false, -- lazy-loading will disable inverse search
   config = function()
     vim.g.vimtex_view_method = 'skim'
     vim.g.vimtex_quickfix_open_on_warning = 0
     vim.g.vimtex_quickfix_mode = 2
   end,
   keys = {
     { '<localLeader>l', '', desc = '+vimtex' },
   },
 },

 { 'micangl/cmp-vimtex', lazy = false },

and

        sources = {
          {
            name = 'lazydev',
            -- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
            group_index = 0,
          },
          { name = 'nvim_lsp' },
          { name = 'luasnip' },
          { name = 'path' },
          { name = 'vimtex' },
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions