polarmutex/git-worktree.nvim

:lua require('telescope').extensions.git_worktree.git_worktrees() throws error

Closed this issue · 3 comments

image

E5108: Error executing lua ...l/share/nvim/lazy/telescope.nvim/lua/telescope/utils.lua:287: Invalid 'window': Expected Lua number
stack traceback:
	[C]: in function 'nvim_win_get_width'
	...l/share/nvim/lazy/telescope.nvim/lua/telescope/utils.lua:287: in function 'calc_result_length'
	...l/share/nvim/lazy/telescope.nvim/lua/telescope/utils.lua:347: in function 'transform_path'
	...worktree.nvim/lua/telescope/_extensions/git_worktree.lua:166: in function 'parse_line'
	...worktree.nvim/lua/telescope/_extensions/git_worktree.lua:179: in function 'git_worktrees'
	[string ":lua"]:1: in main chunk

I switched to this fork from Prime's hoping it fixes the above issue, but to no avail :(.

Is this just me maybe?

Running the latest nightly version of Neovim and all packages are up to date.

I will take a look at this soon, sorry been busy

require('telescope').extensions.git_worktree.git_worktree()

Works for me on the v2 I just released, please try on your side and let me know if this is resolved

That did the trick. Thank you.