Skip to content

Commit

Permalink
feat(extras): add fzf colors (#464)
Browse files Browse the repository at this point in the history
* feat(extras): add fzf colors

* chores: update formatting

* Update lua/tokyonight/extra/fzf.lua

Co-authored-by: 艦ahin Akkaya <sahin@sahinakkaya.dev>

---------

Co-authored-by: 艦ahin Akkaya <sahin@sahinakkaya.dev>
  • Loading branch information
skoch13 and sahinakkaya committed Jan 20, 2024
1 parent d03dcf3 commit 75c60d5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lua/tokyonight/extra/fzf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local util = require("tokyonight.util")

local M = {}

--- @param colors ColorScheme
function M.generate(colors)
return util.template(M.template, colors)
end

M.template = [[
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS \
--color=fg:${fg},bg:${bg},hl:${orange} \
--color=fg+:${fg},bg+:${bg_highlight},hl+:${orange} \
--color=info:${blue},prompt:${cyan},pointer:${cyan} \
--color=marker:${green},spinner:${green},header:${green}"
]]

return M
1 change: 1 addition & 0 deletions lua/tokyonight/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ M.extras = {
dunst = {ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst"},
gitui = {ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI"},
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix"},
fzf = { ext = "zsh", url = "https://github.com/junegunn/fzf", label = "Fzf"},
}

local function write(str, fileName)
Expand Down

0 comments on commit 75c60d5

Please sign in to comment.