How do you make coc.nvim fail silently when the language server executable isn't on the path? #5328
Unanswered
briancarbone
asked this question in
Q&A
Replies: 3 comments 5 replies
-
|
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
It's still printing this on startup even with that enabled. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I guess you can't do this because CoC loads asynchronously so the config will be empty. var servers = coc#util#get_config('languageserver')
for [name, config] in items(servers)
if index(config.filetypes, &ft) != -1 && !executable(config.command)
coc#config($'languageserver.{name}.enable', false)
endif
endforI tried putting it in an autocmd ( |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use ephemeral development shells and if I open a .c file without clangd on the path, I don't want coc.nvim to complain; I just want it to fail silently. Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions