Cerebus / emacs-scratch

My emacs, from scratch.
0 stars 0 forks source link

Have you been able to use kubernetes completion ? #1

Open orovp opened 1 year ago

orovp commented 1 year ago

Hello, I come from https://github.com/joaotavora/eglot/discussions/1152 I don't know how to contact you and I've decided to make this ticket :)

I'm trying to use eglot + yaml-language-server to load kubernetes schema and use it on a yaml file for completion capabilities but I'm not able to setup this functionality, did you manage to make it work?

Where do you use following code?

((yaml schemas
       (Kubernetes
        ["**/manifests/*.yaml"])))

Thank you.

Cerebus commented 1 year ago

That sexp goes in a dir local definition (https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html). I usually have this in the project root, but sometimes I'll have other schema mappings in subdirs. I find the globbing to be unreliable.