I use Helix Editor and by default it uses clangd as LSP server.

But when I use “newer” C++20 features I get warning messages in the editor that they are only available in “later” C++ versions or I get straight up error messages.

So how do I tell clangd that I am writing C++20 code? I am guessing passing an argument (-std=c++20) or creating a “project properties” file…

This is the Helix Editor configuration file, languages.toml:

[[language]]
name = "cpp"
language-server = { command = "clangd", args = [] }
auto-format = true

Please let me know the right way to do it.