Giter VIP home page Giter VIP logo

Comments (4)

TxGVNN avatar TxGVNN commented on May 25, 2024

Do you know of a way to get completion added? I would be willing to add some for this mode, but I do not know where I would find the keywords for kubernetes files.

I think you don't need to find and add some more. Just see what you need and just make it become a yasnippet template.

Also do you plan to do anything with Helm in the future?

Helm template is jinja file, so if you want to support helm, you should write a new helm-k8s-mode (because helm-mode name had taken) instead of using this mode

from emacs-k8s-mode.

Aaronzinhoo avatar Aaronzinhoo commented on May 25, 2024

Although I do agree that creating a yassnippet is convenient, I am still early in my journey and what I need is still kinda hard to determine. I was thinking of writing a completion backend with docs so that people like me can see the purpose of what they are using.

Completion in kubernetes for the key values would be really helpful but it's a little difficult considering the contextual dependency of nested keys. Like spec can be a key under templates & service at two different levels.

from emacs-k8s-mode.

TxGVNN avatar TxGVNN commented on May 25, 2024

If I understand correctly, seems you should learn about company-mode for the completion feature. You will have to write a new company-backend function

from emacs-k8s-mode.

TxGVNN avatar TxGVNN commented on May 25, 2024

You can learn from https://github.com/rafalcieslak/emacs-company-terraform and https://github.com/krzysztof-magosa/company-ansible

from emacs-k8s-mode.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.