From 61ee1949010c4246e868404b56534d1b68645942 Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Tue, 25 Feb 2025 14:37:07 -0300 Subject: [PATCH] Change easy motion colors Attempt to highlight match, and not jump key. --- lua/plugins/easy-motion.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lua/plugins/easy-motion.lua b/lua/plugins/easy-motion.lua index 142be81..cccbdbc 100644 --- a/lua/plugins/easy-motion.lua +++ b/lua/plugins/easy-motion.lua @@ -5,7 +5,29 @@ return { modes = { char = { enabled = false }, -- Disable `f` and `t` enhancements }, + label = { + -- after = false, + rainbow = { + enabled = false, + }, + format = function(opts) + return { { opts.match.label, "FlashLabel" } } -- Replace the character with the label + end, + -- uppercase = false, -- Use lowercase labels + -- rainbow = false, -- Disable rainbow colors + -- format = function(opts) + -- return { { opts.match.label, "FlashLabel" } } -- Replace the character with the label + -- end, + }, + search = { + mode = "exact", + }, }, + config = function() + vim.api.nvim_set_hl(0, "FlashLabel", { fg = "#ffcc00", bg = "NONE", bold = true }) + vim.api.nvim_set_hl(0, "FlashMatch", { fg = "#ff6600", bg = "NONE", bold = true }) + vim.api.nvim_set_hl(0, "FlashCurrent", { fg = "#ffffff", bg = "#ff0000", bold = true }) + end, keys = { -- f{char} to move to {char} {