fixed flash behaviour to be better
This commit is contained in:
7
init.lua
7
init.lua
@@ -53,3 +53,10 @@ vim.keymap.set("n", "<leader>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
|
||||
|
||||
@@ -44,7 +44,14 @@ Keymap("t", "<C-D>", "<C-\\><C-n>") -- 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()
|
||||
|
||||
Reference in New Issue
Block a user