Skip to content

How to change the grep match highlight colors of the preview window? #1751

Closed Answered by morenoblue
morenoblue asked this question in Q&A
Discussion options

You must be logged in to vote

Ohhh I okay, I think I got it.

So I added the winopts option to my config like I show below and its now working like you described; I can now control the background of the cursor line in the preview window using the FzfLuaCursorLine highlight group. Thank you very much.

{
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
	require("fzf-lua").setup({
		"max-perf",
		"telescope",
		winopts = { preview = { default = "builtin" } },

		keymap = {
			fzf = {
				["ctrl-q"] = "select-all+accept",
			},
		},
	})

	vim.keymap.set("n", "<leader>ew", require("fzf-lua").files, { desc = "Fzf Files" })
	vim.keymap.set("n", "<leader>ef", require("fzf-lua").lsp_docu…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@morenoblue
Comment options

@morenoblue
Comment options

@ibhagwan
Comment options

@morenoblue
Comment options

Answer selected by morenoblue
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants