svrana / neosolarized.nvim

Truecolor solarized theme for neovim in Lua using colorbuddy
Other
158 stars 35 forks source link

W18: Invalid character in group name #9

Closed ecerulm closed 2 years ago

ecerulm commented 2 years ago

I'm getting

Error detected while processing /Users/rubelagu/dotfiles/neovim/after/plugin/neosolarized.rc.lua:
W18: Invalid character in group name
W18: Invalid character in group name
W18: Invalid character in group name

This comes from the setup() on

local status, n = pcall(require, "neosolarized")
if (not status) then return end

n.setup({
  --   comment_italics = true,
})

I'm using the latest :PackerUpdate.

ecerulm commented 2 years ago

Seems to me that the 3 x W18 are coming from

https://github.com/svrana/neosolarized.nvim/blob/17a1d16afe242c9305c6ce4232bcb688bfd7ff4f/lua/neosolarized.lua#L308-L310

At least I guest the same error to define a group with name @tag

ecerulm commented 2 years ago

Well, nevermind, I have updated to neovim 8.0.0 with brew install neovim and the error disappeared. Turns out that I was using neovim 7.2.0 but somehow that vim.fn.has("nvim-0.8.0") was evaluating to true (!?!?).