Skip to content

Commit

Permalink
fix: neovim 0.10.x has renamed vim.loop to vim.uv
Browse files Browse the repository at this point in the history
  • Loading branch information
desdic committed May 3, 2024
1 parent 09c2024 commit c6defac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/telescope/_extensions/agrolenslib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ agrolens.telescope_opts = {
-- entry_maker = agrolens.entry_maker
--
-- Default way of finding current directory
-- cwd = opts.cwd and vim.fn.expand(opts.cwd) or vim.loop.cwd()
-- cwd = opts.cwd and vim.fn.expand(opts.cwd) or vim.loop.cwd() or vim.uv.cwd()
--
-- Default previewer
-- previewer = conf.grep_previewer(opts)
Expand Down Expand Up @@ -170,7 +170,9 @@ agrolens.run = function(opts)

if opts.query then
opts.entry_maker = opts.entry_maker or agrolens.entry_maker
opts.cwd = opts.cwd and vim.fn.expand(opts.cwd) or vim.loop.cwd()
opts.cwd = opts.cwd and vim.fn.expand(opts.cwd)
or vim.loop.cwd()
or vim.uv.cwd()
opts.previewer = opts.previewer or conf.grep_previewer(opts)
opts.sorter = opts.sorter or conf.generic_sorter(opts)
opts = utils.get_buffers(opts)
Expand Down

0 comments on commit c6defac

Please sign in to comment.