Mofiqul / dracula.nvim

Dracula colorscheme for neovim written in Lua
MIT License
594 stars 103 forks source link

Everything is mostly cyan after PR #49 #56

Closed Kerwood closed 1 year ago

Kerwood commented 1 year ago

After this PR (https://github.com/Mofiqul/dracula.nvim/pull/49), the majority of colors are cyan.

Before merge image

After merge. image

Is this the intended behavior ?

NoahTheDuke commented 1 year ago

If you're using nvim-treesitter, try installing the playground plugin and using the :TSCaptureUnderCursor command to see what groups those words are.

NikitaNaumenko commented 1 year ago

Try to reinstall plugin, it helped me

Kerwood commented 1 year ago

I have, multiple times..

The impl .... is of type @keyword (I dont know why the screenshot became so big:P ) image

It looks like that the Keyword (groups.lua#L48) takes precedence over @keyword (groups.lua#L163)

Same goes for pub and let.

clean() is @function but matches Function(groups.lua#L51)

NoahTheDuke commented 1 year ago

You gotta turn off additional_vim_regex_highlighting in your nvim-treesitter settings.

Kerwood commented 1 year ago

No luck.. This is my nvim-treesitter config.

configs.setup({
  ensure_installed = "all",
  ignore_install = { "" },
  highlight = {
    enable = true,
    additional_vim_regex_highlighting = false,
    disable = { "" },
  },
  indent = { enable = true },
  rainbow = {
    enable = true,
    extended_mode = true,
    max_file_lines = nil,
  }
})
UnderGreen commented 1 year ago

Hmm, the same problem for me and I can't find out why it is not working as intended.

UnderGreen commented 1 year ago

@Kerwood I bumped nvim-treesitter to this commit and it fixed the problem for me.

Kerwood commented 1 year ago

Haha yeah that fixed the issue, but apparently broke treesitter syntax for Rust :1st_place_medal: image But dracula is working as intended though :)

I wonder why most nvim package repos are not semantic versioned ?

Edit: :TSUpdate fixed it.