feat(extras): add fzf colors (#464)

* 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>
This commit is contained in:
Sergey Kochetkov 2024-01-20 12:16:27 +01:00 committed by GitHub
parent d03dcf3fd0
commit 75c60d5694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -25,6 +25,7 @@ M.extras = {
dunst = {ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst"}, dunst = {ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst"},
gitui = {ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI"}, gitui = {ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI"},
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix"}, 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) local function write(str, fileName)