sainnhe / sonokai

High Contrast & Vivid Color Scheme based on Monokai Pro
MIT License
1.65k stars 119 forks source link

Error when define colorscheme sonokai #71

Closed Danielwsx64 closed 2 years ago

Danielwsx64 commented 2 years ago

I have done the following steps before reporting this issue:

Operating system/version

Ubuntu 22.04.1 LTS

Terminal emulator/version

Version 3.44.0 for GNOME 42

$TERM environment variable

screen-256color

Tmux version

tmux 3.2a

Feature matrix

nvim: health#nvim#check

Configuration

Performance

Remote Plugins

terminal

nvim-lsp-installer: require("nvim-lsp-installer.health").check()

nvim-lsp-installer report

provider: health#provider#check

Clipboard (optional)

Python 3 provider (optional)

Python virtualenv

Ruby provider (optional)

Node.js provider (optional)

Perl provider (optional)

telescope: require("telescope.health").check()

Checking for required plugins

Checking external dependencies

===== Installed extensions =====

Telescope Extension: ag

Telescope Extension: danielws

Telescope Extension: file_browser

Telescope Extension: fzf

Telescope Extension: gh

Telescope Extension: luasnip

Telescope Extension: neoclip

Telescope Extension: project

Telescope Extension: projects

vim.lsp: require("vim.lsp.health").check()

vim.treesitter: require("vim.treesitter.health").check()

which_key: health#which_key#check

WhichKey: checking conflicting keymaps

Minimal vimrc that can reproduce this bug.

    -- My config using packer
    use({ "sainnhe/sonokai", config = function ()

        vim.g.sonokai_better_performance = 1
        vim.g.sonokai_style = "default"

        vim.cmd("colorscheme sonokai")
    end })

Steps to reproduce this bug using minimal vimrc

Just open nvim

Expected behavior

Load nvim with sonokai colorscheme

Actual behavior

An error when try read sonokai/colors/sonokai.vim


Error detected while processing /home/daniel/.local/share/nvim/site/pack/packer/start/sonokai/colors/sonokai.vim:
line  425:
W18: Invalid character in group name
line  426:
W18: Invalid character in group name
line  427:
W18: Invalid character in group name
line  428:
W18: Invalid character in group name
line  429:
W18: Invalid character in group name
line  430:
W18: Invalid character in group name
line  431:
W18: Invalid character in group name
line  432:
W18: Invalid character in group name
line  433:
W18: Invalid character in group name
line  434:
W18: Invalid character in group name
line  435:
antoineco commented 2 years ago

@Danielwsx64 please update to Neovim's latest nightly. You are using a development version of Neovim (0.8.0-dev), and the Treesitter highlight groups have been completely reworked recently upstream, so we had to make that change to support the current development branch.

Danielwsx64 commented 2 years ago

@antoineco tks. It worked.