mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix!: disable registration for floating windows (#181)
Due to performance, now it disables registration process in floating windows.
This commit is contained in:
parent
bd52772bf2
commit
ebf22789f6
@ -54,7 +54,10 @@ return require("telescope").register_extension {
|
|||||||
group = group,
|
group = group,
|
||||||
---@param args { buf: integer }
|
---@param args { buf: integer }
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
frecency.register(args.buf)
|
local is_floatwin = vim.api.nvim_win_get_config(0).relative ~= ""
|
||||||
|
if not is_floatwin then
|
||||||
|
frecency.register(args.buf)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user