clangd of coc-nvim automatically adds words. How to stop it from doing so?

  Kiến thức lập trình

What I type:

printf("%4dt%4dn", test, varr);
'''

What I get upon saving:

printf(format: “%4dt%4dn”, fahr, cel);


I do not want the automatically added words in my code.

I tried editing the coc-settings.json 
it did not have any specifications for c when i opened it
i added this: 

{
“clangd.arguments”: [
“–clang-tidy”,
“–completion-style=detailed”,
“–header-insertion=never”,
“–header-insertion-decorators=0”
],
“clangd.fallbackFlags”: [
“-std=c++17”
],
“clangd.semanticHighlighting”: true,
“clangd.fileStatus”: true,
“clangd.trace”: “verbose”,
“clangd.formatting”: false, // Disable automatic formatting
“coc.preferences.formatOnSaveFiletypes”: [“c”, “cpp”],
“coc.preferences.formatOnType”: false
}


Sorry if this is a basic question. I'm new to vim.

New contributor

mnvndraah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT