/nvim-c

A decent starting point for C and C++ development with neovim.

Primary LanguageVim ScriptMIT LicenseMIT

Simple nvim config for C and C++ development

Screenshot

This is a simplified version of The Primeagen's Neovim config

  • This config depends on the 0.5 branch of neovim. This will not work on 0.4.4
  • Because this depends on a non stable version of neovim, some issues may arise over time.
  • Clone this into ~/.config/ and rename it to nvim.
  • Start nvim and ignore error messages. Run :PlugInstall and quit when installation is finished.
  • Open nvim again and everything should run.

Features

Clang completion

  • lspconfig clangd config
  • clangd must be installed for completion to work.
  • clangd needs compile_commands.json for completeion beyond the standard library. compile_commands.json can be generated with cmake.