folke / twilight.nvim

🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
Apache License 2.0
1.24k stars 21 forks source link

Error on startup #2

Closed max397574 closed 3 years ago

max397574 commented 3 years ago

I get an error, on startup Screen Shot 2021-07-13 at 12 58 33

my init.vim

folke commented 3 years ago

Should be fixed now :)

max397574 commented 3 years ago

so :PlugUpdateshould do it (vim-plug)?

folke commented 3 years ago

I guess so. I'm using Packer.

max397574 commented 3 years ago

It works without conifguration but if I add this:

lua << EOF
  require("twilight").setup {
    -- your configuration comes here
    -- or leave it empty to use the default settings
    -- refer to the configuration section below
  }
EOF    >>>

I get this:

Screen Shot 2021-07-13 at 13 02 36 (line 641 is >>> in the code)

folke commented 3 years ago

Damn, should be fine now. I forgot to expose setup in init.lua

max397574 commented 3 years ago

works now