Skip to content

Commit

Permalink
add support to fzf-lua
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelmso committed Jan 11, 2025
1 parent 595ffb8 commit efbaeb5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/nightfox/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ M.module_names = {
"diagnostic",
"fern",
"fidget",
"fzf",
"gitgutter",
"gitsigns",
"glyph_palette",
Expand Down
29 changes: 29 additions & 0 deletions lua/nightfox/group/modules/fzf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-- https://github.com/ibhagwan/fzf-lua
local M = {}

function M.get(spec, config, opts)
local c = spec.palette

return {
FzfLuaBorder = { link = "FloatBorder" },
FzfLuaTitle = { link = "FloatBorder" },
FzfLuaDirPart = { link = "FloatTitle" },
FzfLuaFzfCursorLine = { link = "Visual" },
FzfLuaFzfSeparator = { link = "Comment" },
FzfLuaPath = { link = "Directory" },
FzfLuaPreviewTitle = { link = "IncSearch" },
FzfLuaFzfMatch = { link = "CursorLine" },
FzfLuaFzfPrompt = { fg = c.blue },
FzfLuaPathColNr = { fg = c.blue },
FzfLuaPathLineNr = { fg = c.green },
FzfLuaBufName = { fg = c.magenta },
FzfLuaBufNr = { fg = c.yellow },
FzfLuaBufFlagCur = { fg = c.orange },
FzfLuaBufFlagAlt = { fg = c.blue },
FzfLuaTabTitle = { fg = c.green },
FzfLuaTabMarker = { fg = c.yellow },
FzfLuaLiveSym = { fg = c.orange },
}
end

return M

0 comments on commit efbaeb5

Please sign in to comment.