Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

No Syntax Highlighting #84

Open
ghost opened this issue Apr 15, 2022 · 1 comment
Open

No Syntax Highlighting #84

ghost opened this issue Apr 15, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 15, 2022

Describe the bug
First thanks for developing this plugin. I am failing to get any syntax highlighting whatsoever, here are some specs:

  • OS: Ubuntu 20.04
  • Vim: 8.1 (with Coc and coc-clangd)
  • Clangd: 10.0.0-4ubuntu1
  • Build system: make, and using bear to create compile_flags.json
  • ~/.vim/coc-settings.json:
    { "suggest.autoTrigger": "none", "clangd.semanticHighlighting": true, "coc.preferences.semanticTokensHighlights": false }

To Reproduce
I tested this on just a basic c++ example repo found here. After building, vim-coc seems to be working fine, I am however not getting any highlighting. Opening the main file, running :LspCxxHighlight and then :LspCxxHlDumpSyms I get the following:

image

As you can see, no highlighting and no symbols found...

with log:

Fri 15 Apr 2022 01:43:54 PM EDT: match check symbols started for main.cpp
Fri 15 Apr 2022 01:43:54 PM EDT: match check skipped started for main.cpp
Fri 15 Apr 2022 01:43:54 PM EDT: lsp_cxx_hl beginning initialization...
Fri 15 Apr 2022 01:43:54 PM EDT: vim-lsp not detected
Fri 15 Apr 2022 01:43:54 PM EDT: LanguageClient-neovim not detected
Fri 15 Apr 2022 01:43:54 PM EDT: coc.nvim successfully registered
Fri 15 Apr 2022 01:43:54 PM EDT: Not registering nvim-lsp as this is not Neovim
Fri 15 Apr 2022 01:43:54 PM EDT: operation hl_skipped main.cpp took 0.000962s to complete
Fri 15 Apr 2022 01:43:54 PM EDT: operation hl_symbols main.cpp took 0.000106s to complete
Fri 15 Apr 2022 01:44:00 PM EDT: match check symbols (force) started for main.cpp
Fri 15 Apr 2022 01:44:00 PM EDT: match check skipped (force) started for main.cpp
Fri 15 Apr 2022 01:44:00 PM EDT: operation hl_symbols main.cpp took 0.000193s to complete
Fri 15 Apr 2022 01:44:00 PM EDT: operation hl_skipped main.cpp took 0.000188s to complete

Given I have vim > 8.2, I tried let g:lsp_cxx_hl_use_text_props = 1, but to no avail either.

Any ideas as to troubleshooting? Appreciate the help.

@Swaggerzhan
Copy link

Describe the bug First thanks for developing this plugin. I am failing to get any syntax highlighting whatsoever, here are some specs:

  • OS: Ubuntu 20.04
  • Vim: 8.1 (with Coc and coc-clangd)
  • Clangd: 10.0.0-4ubuntu1
  • Build system: make, and using bear to create compile_flags.json
  • ~/.vim/coc-settings.json:
    { "suggest.autoTrigger": "none", "clangd.semanticHighlighting": true, "coc.preferences.semanticTokensHighlights": false }

To Reproduce I tested this on just a basic c++ example repo found here. After building, vim-coc seems to be working fine, I am however not getting any highlighting. Opening the main file, running :LspCxxHighlight and then :LspCxxHlDumpSyms I get the following:

image

As you can see, no highlighting and no symbols found...

with log:

Fri 15 Apr 2022 01:43:54 PM EDT: match check symbols started for main.cpp Fri 15 Apr 2022 01:43:54 PM EDT: match check skipped started for main.cpp Fri 15 Apr 2022 01:43:54 PM EDT: lsp_cxx_hl beginning initialization... Fri 15 Apr 2022 01:43:54 PM EDT: vim-lsp not detected Fri 15 Apr 2022 01:43:54 PM EDT: LanguageClient-neovim not detected Fri 15 Apr 2022 01:43:54 PM EDT: coc.nvim successfully registered Fri 15 Apr 2022 01:43:54 PM EDT: Not registering nvim-lsp as this is not Neovim Fri 15 Apr 2022 01:43:54 PM EDT: operation hl_skipped main.cpp took 0.000962s to complete Fri 15 Apr 2022 01:43:54 PM EDT: operation hl_symbols main.cpp took 0.000106s to complete Fri 15 Apr 2022 01:44:00 PM EDT: match check symbols (force) started for main.cpp Fri 15 Apr 2022 01:44:00 PM EDT: match check skipped (force) started for main.cpp Fri 15 Apr 2022 01:44:00 PM EDT: operation hl_symbols main.cpp took 0.000193s to complete Fri 15 Apr 2022 01:44:00 PM EDT: operation hl_skipped main.cpp took 0.000188s to complete

Given I have vim > 8.2, I tried let g:lsp_cxx_hl_use_text_props = 1, but to no avail either.

Any ideas as to troubleshooting? Appreciate the help.

do you solve now? i got same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant