D
D
DimanCPlusPlus2021-09-25 18:56:09
vim
DimanCPlusPlus, 2021-09-25 18:56:09

How does clangd install the C++ standard?

I was able to bind clangd to NeoVim. Now I don't know how to install the C++ language standard. Help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Demin, 2021-09-25
@includedlibrary

Try like this

nvim_lsp['clangd'].setup {
    on_attach = on_attach,
    cmd = { 'clangd', '--background-index', '-std=c++17' },
    flags = {
      debounce_text_changes = 150,
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question