How to use GCC as LSP for C?

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
  • ccls

    C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting

  • You can use ccls and follow this instrctions to tell it your using gcc toolchain.

  • Bear

    Bear is a tool that generates a compilation database for clang tooling.

  • Both clangd and ccls needs complile_commands.json in your root directory to take care about compiler flags. If you use cmake as build system, you can generate this file with it. If you use your own Makefiles to build your project, take a look at this, it generates compile_commands.json from any makefile based project.

  • 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
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