mvllow / modes.nvim

Prismatic line decorations for the adventurous vim user
550 stars 13 forks source link

recent update raised "expected table, got nil" #48

Closed mortymacs closed 11 months ago

mortymacs commented 11 months ago

Hi,

Recently, after an update, I got this error:

Error detected while processing /home/mort/.config/nvim/init.lua:
E5113: Error while calling lua chunk: vim/shared.lua:0: after the second argument: expected table, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'tbl_extend'
        /home/mort/.local/share/nvim/lazy/modes.nvim/lua/modes.lua:204: in function 'setup'
        /home/mort/.config/nvim/lua/theme.lua:120: in main chunk
        [C]: in function 'require'
        /home/mort/.config/nvim/init.lua:8: in main chunk

My config:

require('modes').setup()

Nvim version:

NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1693350652
mortymacs commented 11 months ago

Sorry for my mistake. I should change my config to this:

require('modes').setup({})
mvllow commented 11 months ago

I should have caught this with the latest PR, sorry about that. Will fix asap

Edit: ref #49