mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 22:29:58 +00:00
1.1 KiB
1.1 KiB
Useful development tools
This readme contains some hints on how to set up some optional development tools.
ccls
ccls is a c/c++ language server. It requires some setup to work well. There are different ways to do it but here's what works for me:
- Make a common parent directory for all your common neon projects. (for example,
~/src/neondatabase/) - Go to
vendor/postgres-v15 - Run
make clean && ./configure - Install bear, and run
bear -- make -j4 - Copy the generated
compile_commands.jsonto~/src/neondatabase(or equivalent) - Run
touch ~/src/neondatabase/.ccls-rootthis will make thecompile_commands.jsonfile discoverable in all subdirectories
With this setup you will get decent lsp mileage inside the postgres repo, and also any postgres extensions that you put in ~/src/neondatabase/, like pg_embedding, or inside ~/src/neondatabase/neon/pgxn as well.
Some additional tips for various IDEs:
Emacs
To improve performance: (setq lsp-lens-enable nil)