Skip to content

Commit

Permalink
perf(flygrep): enable cursorline in preview win
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Jan 31, 2025
1 parent cf20c2b commit 4ea7664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundle/flygrep.nvim/lua/flygrep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ local function toggle_preview_win()
-- title_pos = 'center',
-- noautocmd = true,
})
vim.api.nvim_set_option_value('cursorline', true, { win = preview_winid })
local winopt = vim.api.nvim_win_get_config(result_winid)
winopt.row = start_row + math.floor((screen_height - 5) / 2) + 2
winopt.height = screen_height - 5 - math.floor((screen_height - 5) / 2) - 2
Expand Down Expand Up @@ -243,6 +244,7 @@ local function open_win()
-- title_pos = 'center',
-- noautocmd = true,
})
vim.api.nvim_set_option_value('cursorline', true, { win = preview_winid })
result_bufid = vim.api.nvim_create_buf(false, true)
result_winid = vim.api.nvim_open_win(result_bufid, false, {
relative = 'editor',
Expand Down

0 comments on commit 4ea7664

Please sign in to comment.