Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Setup Auto-Formatting For C++ Files In Neovim On A Mac

Turns out all I had to do was uncomment `clangd = {}`` in the `local servers`` section of my _~/.config/nvim/init.lua__ file to turn on the clangd LSP. (I already had clangd installed)

I think the LSP config with the commented out clangd server was from the _kickstart.nvim__^ks^^ config file I'm using.

These are scratchpad notes I took while figuring things out. Leaving them here as reference.

Reference Links To Add

References

  • I got turned onto this from TJ DeVries who works on Neovim. It's worked well as a basic starter for me.

  • This is the post that got me started. It has instruction for auto-completion as well as formatting. I'll get to that at some point, but my immediate concern is the formatting.