4

I’m new to Linux and nvim and have heard a lot of great things about the Kickstart.nvim configuration by tj. I’m learning C++ and trying to configure the compiler to use --std=c++20 by default, but I’m having trouble getting it to work.

I don’t want to manually add flags every time I compile, and I would prefer a setup where I don't need to specify the flag each time. I’ve tried searching and also used ChatGPT to help me understand how to set it up, but I’m still confused. I also tried setting the --std=c++20 flag globally, but that didn’t seem to work either.

Could anyone guide me on how to set up my nvim and Kickstart.nvim configuration to automatically use --std=c++20 when compiling C++ code?

Thanks in advance for your help!

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.