Skip to content

Commit

Permalink
feat(fzf): add template for fzf extra
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimonho committed Feb 23, 2025
1 parent 89f65b7 commit f1a86cf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
3 changes: 0 additions & 3 deletions extras/fzf.rc

This file was deleted.

27 changes: 27 additions & 0 deletions lua/kanagawa-paper/extras/fzf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local util = require("kanagawa-paper.lib.util")

local M = {}

--- @param colors ThemeColors
function M.generate(colors)
local fzf = util.template(
[[
# -----------------------------------------------------------------------------
# ${_style_name}
# Upstream: ${_upstream_url}
# URL: ${_url}
# Note: You can either export the following as an environment variable (export FZF_DEFAULT_OPTS='...') or
# add the following to an opts file and point FZF_DEFAULT_OPTS_FILE to it.
# See the URL above for more information.
# -----------------------------------------------------------------------------
--color=bg:-1,bg+:${ui.bg_cursorline},fg:-1,fg+:${ui.fg},hl:${ui.bg_search},hl+:${syn.symbol}
--color=header:${ui.header2},info:${diag.info},pointer:${ui.mark}
--color=marker:${ui.mark},prompt:${ui.picker},spinner:${ui.special}
]],
colors
)
return fzf
end

return M
2 changes: 1 addition & 1 deletion lua/kanagawa-paper/extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ M.extras = {
-- fish_themes = { ext = "theme", url = "https://fishshell.com/docs/current/interactive.html#syntax-highlighting", label = "Fish Themes" },
-- foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
-- fuzzel = { ext = "ini", url = "https://codeberg.org/dnkl/fuzzel", label = "Fuzzel" },
-- fzf = { ext = "sh", url = "https://github.com/junegunn/fzf", label = "Fzf" },
fzf = { ext = "sh", url = "https://github.com/junegunn/fzf/tree/master#environment-variables", label = "Fzf" },
-- ghostty = { ext = "", url = "https://github.com/ghostty-org/ghostty", label = "Ghostty" },
-- gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
-- gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal" },
Expand Down

0 comments on commit f1a86cf

Please # to comment.