最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

neovim - How to disable function argument fillers in coc-clangd - Stack Overflow

matteradmin8PV0评论

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
Add a comment  | 

2 Answers 2

Reset to default 2

I 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,
Post a comment

comment list (0)

  1. No comments so far