josa42 / coc-go

Go language server extension using gopls for coc.nvim.
MIT License
566 stars 30 forks source link

SemanticToken base highlighting ? #212

Closed violin0622 closed 1 year ago

violin0622 commented 1 year ago

Is coc-go support semantic token highlighting ? gopls has implemented it and VS-code has supported it. But I searched through readme and issues list, can't found any document about how to configure it with coc-go .

I've tried config like this but helpless:

{
  ,"go.goplsOptions": {
    ,"semanticTokens": true
  }
}
Hogan-TR commented 1 year ago

I'm the same way, or is there any workaround?

andryuha-salo commented 1 year ago

:h coc-semantic-highlights enable on coc.nvim side, on gopls side and it should work

:CocCommand semanticTokens.inspect image

also your theme should support these hl groups

violin0622 commented 1 year ago

:h coc-semantic-highlights enable on coc.nvim side, on gopls side and it should work

:CocCommand semanticTokens.inspect image

also your theme should support these hl groups

It works. Thank you !