Skip to content

Commit

Permalink
feat(extensions): add hop.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Jul 18, 2024
1 parent b91d2b1 commit 70470cb
Show file tree
Hide file tree
Showing 2 changed files with 24 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 gitsigns? boolean
---@field grapple? boolean
---@field heirline? boolean
---@field hop? boolean
---@field indentblankline? boolean
---@field kubectl? boolean
---@field lazy? boolean
Expand Down Expand Up @@ -74,6 +75,7 @@ local default_options = {
gitsigns = true,
grapple = true,
heirline = true,
hop = true,
indentblankline = true,
kubectl = true,
lazy = true,
Expand Down
22 changes: 22 additions & 0 deletions lua/cyberdream/extensions/hop.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local M = {}
local util = require("cyberdream.util")

--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
HopNextKey = { fg = t.magenta, bg = util.blend(t.bg_solid, t.magenta, 0.85), bold = true },
HopNextKey1 = { fg = t.cyan, bg = util.blend(t.bg_solid, t.cyan, 0.85), bold = true },
HopNextKey2 = {
fg = util.blend(t.cyan, t.bg_solid, 0.7),
bg = util.blend(t.bg_solid, t.cyan, 0.9),
bold = true,
},
HopUnmatched = { fg = t.bgHighlight },
HopPreview = { fg = t.fg, bg = t.bgHighlight },
}
return highlights
end
return M

0 comments on commit 70470cb

Please sign in to comment.