Skip to content

Launching through telescope results in execution error #161

@sethraymond

Description

@sethraymond

Description

When attempting to run lazygit through the telescope plugin, I get an error in this plugin's code:

Error executing vim.schedule lua callback: Vim:jobstart(...,{term=true}) requires unmodified buffer
stack traceback:
        [C]: in function 'jobstart'
        ...seth/.local/share/nvim/lazy/lazygit.nvim/lua/lazygit.lua:63: in function <...seth/.local/share/nvim/lazy/lazygit.nvim/lua/lazygit.lua:62>
Press ENTER or type command to continue

To Reproduce
lazy config:

{
	"kdheepak/lazygit.nvim",
	cmd = {
		"LazyGit",
		"LazyGitConfig",
		"LazyGitCurrentFile",
		"LazyGitFilter",
		"LazyGitFilterCurrentFile",
	},
	dependencies = {
		"nvim-lua/plenary.nvim",
		"nvim-telescope/telescope.nvim"
	},
        config = function()
                require('telescope').load_extension("lazygit")
        end(),
}

And run :lua require('telescope').extensions.lazygit.lazygit()

Expected behavior
A floating window appears with submodules visited in the repository. Selecting one pops up a lazygit window in that submodule.

Actual behavior
The floating window appears and the repositories are listed, but when one is selected, an error message appears.

Desktop (please complete the following information):

  • nvim --version:
    NVIM v0.11.3
    Build type: RelWithDebInfo
    LuaJIT 2.1.1753364724
    Run "nvim -V1 -v" for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions