fixes qf handling
This commit is contained in:
parent
7bd5b89ec0
commit
00ccb5c8fb
1 changed files with 10 additions and 14 deletions
|
|
@ -1,21 +1,17 @@
|
|||
return {
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
exclude = {
|
||||
"notify",
|
||||
"noice",
|
||||
"cmp_menu",
|
||||
"flash_prompt",
|
||||
"which_key",
|
||||
"qf",
|
||||
function(win)
|
||||
return not vim.api.nvim_win_get_config(win).focusable
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<CR>",
|
||||
mode = { "n", "x", "o" },
|
||||
function()
|
||||
if vim.bo.filetype ~= "qf" then
|
||||
require("flash").jump()
|
||||
end
|
||||
end,
|
||||
desc = "Flash",
|
||||
},
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<CR>", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue