admin管理员组文章数量:1024593
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,
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,
本文标签: neovimHow to disable function argument fillers in cocclangdStack Overflow
版权声明:本文标题:neovim - How to disable function argument fillers in coc-clangd - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745614937a2159231.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论