From 1ddcc8f06881c66f73d45e131c85b4b8f52e2fef Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 7 Aug 2026 16:42:28 +0100 Subject: [PATCH] fixed flash behaviour to be better --- init.lua | 7 +++++++ lua/config/binds.lua | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8f239de..d99a0b9 100644 --- a/init.lua +++ b/init.lua @@ -53,3 +53,10 @@ vim.keymap.set("n", "u", require("undotree").open) -- Local project config vim.o.exrc = true + +-- Ignore case and some flash nvim stuff +vim.o.ignorecase = true +vim.o.smartcase = true +vim.api.nvim_set_hl(0, "FlashMatch", { fg = "#cba6f7", bold = true }) -- overlay0 +vim.api.nvim_set_hl(0, "FlashLabel", { fg = "#1e1e2e", bg = "#f38ba8", bold = false }) -- overlay0 +vim.api.nvim_set_hl(0, "FlashCurrent", { bg = "#cba6f7", fg = "#1e1e2e", bold = true }) -- overlay0 diff --git a/lua/config/binds.lua b/lua/config/binds.lua index fa9db40..a35145f 100644 --- a/lua/config/binds.lua +++ b/lua/config/binds.lua @@ -44,7 +44,14 @@ Keymap("t", "", "") -- escape terminal with c-d -- Flash keymaps Keymap("n", "ss", function() - require("flash").jump() + require("flash").jump({ + search = { + mode = "fuzzy", + }, + highlight = { + backdrop = true, + }, + }) end) Keymap("n", "S", function() require("flash").treesitter()