mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: do not load frecency in Neovim starting (#237)
This commit is contained in:
parent
25d01edae8
commit
7303f126c7
@ -63,7 +63,10 @@ local function setup(ext_config)
|
|||||||
group = group,
|
group = group,
|
||||||
---@param args { buf: integer }
|
---@param args { buf: integer }
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
local is_floatwin = vim.api.nvim_win_get_config(0).relative ~= ""
|
if vim.api.nvim_buf_get_name(args.buf) == "" then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local is_floatwin = vim.api.nvim_win_get_config(args.buf).relative ~= ""
|
||||||
if not is_floatwin then
|
if not is_floatwin then
|
||||||
frecency.register(args.buf)
|
frecency.register(args.buf)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user