Open ghost opened 2 years ago
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: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
Describe the bug First thanks for developing this plugin. I am failing to get any syntax highlighting whatsoever, here are some specs:
{ "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: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.