mvllow / modes.nvim

Prismatic line decorations for the adventurous vim user
574 stars 14 forks source link

E5113 Error while calling lua chunkattempt to index local 'opts' #8

Closed piersolenski closed 3 years ago

piersolenski commented 3 years ago

After the most recent update I've started getting the following error when trying to start Neovim:

E5113: Error while calling lua chunk: ~/.vim/plugged/modes.nvim/lua/modes/init.lua:127: attempt to index local 'opts'
 (a nil value)

Plz halp!

mvllow commented 3 years ago

Hmm I'm noticing this too, I've been away for the past two weeks and accepted a few PR's. I'll have to dig in and see what the issue is

mvllow commented 3 years ago

Manually passing the default config (replacing any values with your own preferences) seems to be a workaround for the time being!

require('modes').setup({
    colors = {
        copy = '#f5c359',
        delete = '#c75c6a',
        insert = '#78ccc5',
        visual = '#9745be',
    },
    line_opacity = 0.15,
    focus_only = false,
})