diff --git a/README.md b/README.md index 2bf34d8..eaafe84 100644 --- a/README.md +++ b/README.md @@ -51,26 +51,42 @@ Use the following mappings to access Kubernetes features efficiently: ```lua local helm_mappings = { k = { - name = "Kubernetes", - d = { "HelmDeployFromBuffer", "Helm Deploy Buffer to Context" }, - r = { "RemoveDeployment", "Helm Remove Deployment From Buffer" }, - T = { "HelmDryRun", "Helm DryRun Buffer" }, - a = { "KubectlApplyFromBuffer", "Kubectl Apply From Buffer" }, - D = { "DeleteNamespace", "Kubectl Delete Namespace" }, - u = { "HelmDependencyUpdateFromBuffer", "Helm Dependency Update" }, - b = { "HelmDependencyBuildFromBuffer", "Helm Dependency Build" }, - t = { "HelmTemplateFromBuffer", "Helm Template From Buffer" }, - K = { "OpenK9sSplit", "Split View K9s" }, - k = { "OpenK9s", "Open K9s" }, - l = { "ToggleYamlHelm", "Toggle YAML/Helm" }, - c = { "SelectCRD", "Download CRD" }, - C = { "SelectSplitCRD", "Download CRD Split" }, - jf = { "JsonFormatLogs", "Format JSON" }, - jv = { "ViewPodLogs", "View Pod Logs" }, + name = "Kubernetes", -- Main title for all Kubernetes related commands + + -- Helm Commands + h = { + name = "+Helm", + d = { "HelmDeployFromBuffer", "Helm Deploy Buffer to Context" }, + r = { "RemoveDeployment", "Helm Remove Deployment From Buffer" }, + T = { "HelmDryRun", "Helm DryRun Buffer" }, + u = { "HelmDependencyUpdateFromBuffer", "Helm Dependency Update" }, + b = { "HelmDependencyBuildFromBuffer", "Helm Dependency Build" }, + t = { "HelmTemplateFromBuffer", "Helm Template From Buffer" }, + }, + + -- Kubectl Commands + k = { + name = "+Kubectl", + a = { "KubectlApplyFromBuffer", "Kubectl Apply From Buffer" }, + D = { "DeleteNamespace", "Kubectl Delete Namespace" }, + K = { "OpenK9s", "Open K9s" }, + k = { "OpenK9sSplit", "Split View K9s" }, + l = { "ToggleYamlHelm", "Toggle YAML/Helm" }, + c = { "SelectCRD", "Download CRD" }, + C = { "SelectSplitCRD", "Download CRD Split" }, + }, + + -- Logs Commands + l = { + name = "+Logs", + f = { "JsonFormatLogs", "Format JSON" }, + v = { "ViewPodLogs", "View Pod Logs" }, + }, }, } + -- Register the Helm keybindings with a specific prefix -wk.register(helm_mappings, { prefix = "" }) +require('which-key').register(helm_mappings, { prefix = "" }) ``` ## Requirements