Skip to content

Commit

Permalink
feat(extensions): add kubectl.nvim (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Jul 3, 2024
1 parent 852cede commit 998e656
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/cyberdream/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local M = {}
---@field grapple? boolean
---@field heirline? boolean
---@field indentblankline? boolean
---@field kubectl? boolean
---@field lazy? boolean
---@field leap? boolean
---@field mini? boolean
Expand Down Expand Up @@ -70,6 +71,7 @@ local default_options = {
grapple = true,
heirline = true,
indentblankline = true,
kubectl = true,
lazy = true,
leap = true,
mini = true,
Expand Down
24 changes: 24 additions & 0 deletions lua/cyberdream/extensions/kubectl.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local M = {}

--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
KubectlHeader = { fg = t.blue, style = "bold" },
KubectlWarning = { fg = t.yellow },
KubectlError = { fg = t.red },
KubectlInfo = { fg = t.cyan },
KubectlDebug = { fg = t.yellow },
KubectlSuccess = { fg = t.cyan },
KubectlPending = { fg = t.purple },
KubectlDeprecated = { fg = t.magenta },
KubectlExperimental = { fg = t.pink },
KubectlNote = { fg = t.cyan },
KubectlGray = { fg = t.gray },
}

return highlights
end
return M

0 comments on commit 998e656

Please sign in to comment.