fixed flash behaviour to be better

This commit is contained in:
2026-08-07 16:42:28 +01:00
parent 210925720f
commit 1ddcc8f068
2 changed files with 15 additions and 1 deletions

View File

@@ -53,3 +53,10 @@ vim.keymap.set("n", "<leader>u", require("undotree").open)
-- Local project config -- Local project config
vim.o.exrc = true 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

View File

@@ -44,7 +44,14 @@ Keymap("t", "<C-D>", "<C-\\><C-n>") -- escape terminal with c-d
-- Flash keymaps -- Flash keymaps
Keymap("n", "ss", function() Keymap("n", "ss", function()
require("flash").jump() require("flash").jump({
search = {
mode = "fuzzy",
},
highlight = {
backdrop = true,
},
})
end) end)
Keymap("n", "S", function() Keymap("n", "S", function()
require("flash").treesitter() require("flash").treesitter()