fix!: disable registration for floating windows (#181)

Due to performance, now it disables registration process in floating
windows.
This commit is contained in:
JINNOUCHI Yasushi 2024-03-17 18:46:42 +09:00 committed by GitHub
parent bd52772bf2
commit ebf22789f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,10 @@ return require("telescope").register_extension {
group = group,
---@param args { buf: integer }
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,