Skip to main content

➕ C++ Extra

For the CPP Modules, ft_irc and webserv.

Enabling​

Select lang.cpp in :FtVimExtras or add:

{ import = "ftvim.plugins.extras.lang.cpp" },

Features​

  • .tpp files (template implementations) are recognized as C++
  • Formatting with clang-format (<leader>cf), installed with Mason
  • clangd and the C++ treesitter parser come with the core

Together with the 42 extra:

  • :FtVimClass Name creates Name.hpp and Name.cpp in Orthodox Canonical Form
  • The ocf and cout snippets
  • compile_commands.json is generated from your Makefile, so clangd uses -std=c++98 and your include paths. For projects without a Makefile, :FtVimCompileFlags writes a compile_flags.txt with -std=c++98