Skip to content

Commit

Permalink
Merge pull request #45 from desdic/20240503neovim
Browse files Browse the repository at this point in the history
fix: neovim 0.10.x has renamed vim.loop to vim.uv
  • Loading branch information
desdic authored May 3, 2024
2 parents 09c2024 + e8a8c45 commit b7a9dfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/agrolens.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Default telescope options:
-- 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
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 b7a9dfa

Please sign in to comment.