Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fzf-lua #221

Closed
louwers opened this issue Jan 1, 2023 · 1 comment
Closed

Support fzf-lua #221

louwers opened this issue Jan 1, 2023 · 1 comment
Assignees
Labels
assigned Under progress.

Comments

@louwers
Copy link

louwers commented Jan 1, 2023

This plugin is a port of the highly popular fzf.vim plugin: https://github.com/ibhagwan/fzf-lua

@louwers
Copy link
Author

louwers commented Jan 2, 2023

Something like this can be added to github-nvim-theme:

		-- fzf-lua
		FzfLuaNormal     = { fg = c.fg, bg = cfg.transparent and c.none or c.bg },
		FzfLuaBorder     = { fg = c.border },
		FzfLuaCursor     = { fg = c.bg, bg = c.fg },
		FzfLuaSearch     = { fg = c.syntax.constant, style = Styles.Bold },
		FzfLuaTitle      = { fg = c.blue },
		FzfLuaHelpNormal = { fg = c.fg, bg = cfg.transparent and c.none or c.bg },
		FzfLuaHelpBorder = { fg = c.border },

Full highlight groups that are supported can be found here: https://github.com/ibhagwan/fzf-lua#customizing-highlights

You also need to let the plugin pass the correct colors to fzf. I use this for that:

require 'fzf-lua'.setup {
	fzf_colors = function()
		return {
			["fg"] = { "fg", "Normal" },
			["bg"] = { "bg", "Conceal" },
			["hl"] = { "fg", "TelescopeMatching", "bold" },
			["hl+"] = { "fg", "TelescopeMatching", "bold" },
			["fg+"] = { "fg", "Normal" },
			["bg+"] = { "bg", "TelescopeSelection" },
			["prompt"] = { "fg", "Normal" },
			["pointer"] = { "fg", "Normal" },
			["marker"] = { "fg", "Normal" },
		}
	end
}

@ful1e5 ful1e5 self-assigned this May 7, 2023
@ful1e5 ful1e5 added the assigned Under progress. label May 7, 2023
@ful1e5 ful1e5 closed this as completed in fd22add May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Under progress.
Projects
None yet
Development

No branches or pull requests

2 participants