Is it possible to get LSP-aware highlighting for C++ with neovim LSP client using ccls or clangd?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • neovim

    Vim-fork focused on extensibility and usability

  • There's an open PR for this: https://github.com/neovim/neovim/pull/14122 it isn't finished yet, but I used https://github.com/theHamsta/neovim/blob/33de6be20b21a250a9374d25bd0fb9e6cb288664/runtime/lua/vim/lsp/semantic_tokens.lua#L113 as a starting point and it works quite well with the latest clangd main branch (clangd-14). Let me know if you need any help with setting this up (or you can wait for the PR to be finished of course).

  • clangd-nvim

    Discontinued Neovim plugin for semantic highlighting in C++ based on Neovim's build-in LSP support. Mirror of https://gitlab.com/robert-oleynik/clangd-nvim/

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vim-lsp-cxx-highlight

    Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd

  • nvim-treesitter

    Nvim Treesitter configurations and abstraction layer

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts