I am using neovim with coc.nvim installed. How do I disable the fillers/placeholders in the functions?
Thanks in advance.
Os: Linux Mint
my coc-settings.json:
{
"jedi.enable": true,
"jedi.startupMessage": false,
"jedi.markupKindPreferred": "plaintext",
"jedi.trace.server": "off",
"jedi.jediSettings.autoImportModules": [],
"jedi.executablemand": "jedi-language-server",
"jedi.executable.args": [],
"jedipletion.disableSnippets": false,
"jedipletion.resolveEagerly": false,
"jedi.diagnostics.enable": true,
"jedi.diagnostics.didOpen": true,
"jedi.diagnostics.didChange": true,
"jedi.diagnostics.didSave": true,
"jedi.workspace.extraPaths": [],
"jedi.jediSettings.caseInsensitiveCompletion": false,
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/18.1.3/clangd_18.1.3/bin/clangd",
"clangd.arguments": [
"--function-arg-placeholders=0"
],
"inlayHint.enable": false
}
I am using neovim with coc.nvim installed. How do I disable the fillers/placeholders in the functions?
Thanks in advance.
Os: Linux Mint
my coc-settings.json:
{
"jedi.enable": true,
"jedi.startupMessage": false,
"jedi.markupKindPreferred": "plaintext",
"jedi.trace.server": "off",
"jedi.jediSettings.autoImportModules": [],
"jedi.executablemand": "jedi-language-server",
"jedi.executable.args": [],
"jedipletion.disableSnippets": false,
"jedipletion.resolveEagerly": false,
"jedi.diagnostics.enable": true,
"jedi.diagnostics.didOpen": true,
"jedi.diagnostics.didChange": true,
"jedi.diagnostics.didSave": true,
"jedi.workspace.extraPaths": [],
"jedi.jediSettings.caseInsensitiveCompletion": false,
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/18.1.3/clangd_18.1.3/bin/clangd",
"clangd.arguments": [
"--function-arg-placeholders=0"
],
"inlayHint.enable": false
}
Share
Improve this question
edited Nov 18, 2024 at 14:34
THE0_C
asked Nov 18, 2024 at 13:22
THE0_CTHE0_C
111 silver badge3 bronze badges
2 Answers
Reset to default 2I myself was looking for this feature. I took this from your coc-settings.json
:
"clangd.arguments": [
"--function-arg-placeholders=0"
]
And it worked for me!!
Seems like this isn't working for you because of older clangd
version. My clangd
version is 18.1.8
whereas your clangd
version is 18.1.3
.
I think you should update your clangd
in order to get this work. If still this doesn't help, try to updating coc.nvim
as well.
See this for more info.
From Vim, use the command :CocConfig
to open the coc-settings.json
file for the current settings. Add the options below and restart Vim or run :CocRestart
. This should disable the hints.
For more information, refer to :h coc-inlayhint
.
Note: Setting "inlayHint.enable": false
will disable function argument hints. However, I only wanted to disable specific information, so I used the following configuration:
"diagnostic.enable": false,
"signature.enable": false,
"inlayHint.enable": false,