-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes completion not working #45
Comments
save yourself the hassle, this repo seems to be dead. this guy made a out of the box implementation of crd detection: https://github.com/msvechla/yaml-companion.nvim/tree/kubernetes_crd_detection |
switched to using it, but still no completion if I don't specify |
Bumped into this too, it worked before. |
Hi,
I'll start off by saying I am not sure if the issue is relevant here or on the yaml-language-server issues.
I read through many issues regarding registering kubernetes schemas but not sure my issue is the same.
If I set in my
lspconfig.settings.yaml.schemas.kubernetes = '/*'
I get kubernetes completions, but then I get it for EVERY yaml file and it's obviously wrong.If I remove the
kubernetes = '/*'
, then there are no Kubernetes completion, even after I select a schema.Using minimal_init.lua and comparing the logs, the only difference I see is:
To reproduce:
save
minimal_init.lua
minimal_init.lua
save a kubernetes resource yaml:
pod.yaml
open the
pod.yaml
usingminimal_init.lua
:make sure the lsp started and try to get completions in the
metadata:
block. no completionscomment out
kubernetes = '/*',
onminimal_init.lua
open the file again, now there are completions.
now open a completely different yaml file, and there would be diagnostics for Kubernetes schema even though it's not a kubernetes file.
Desired behavior
When I open a kubernetes file, get kubernetes completion.
when I open every other file, use schema store or set no schema at all.
If there's any more information I can add, please let me know.
Thanks.
The text was updated successfully, but these errors were encountered: