nix-config/modules/nvim/config/lua/plugins/flash.lua
2025-08-14 11:25:20 +02:00

25 lines
494 B
Lua

return {
"folke/flash.nvim",
event = "VeryLazy",
opts = {},
config = function()
vim.api.nvim_create_autocmd("BufReadPost", {
pattern = "quickfix",
callback = function()
vim.keymap.set("n", "<CR>", "<CR>", { buffer = true })
end,
})
end,
keys = {
{
"<CR>",
mode = { "n", "x", "o" },
function()
if vim.bo.filetype ~= "qf" then
require("flash").jump()
end
end,
desc = "Flash",
},
},
}