-
-
Notifications
You must be signed in to change notification settings - Fork 297
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I uset to have mappings such as vim.keymap.set('n', '<leader>gc', neogit.popups.commit.create) to create popups even from outside Neogit's buffer.
I also have a problem with opening popups with :Neogit kind=pull from outside of Neogit's buffer - nothing happens, intro screen disappears and that's it, no popup show up. It also doesn't work from within Neogit's buffer, same thing, nothing happens.
Neovim version
NVIM v0.10.0-dev-682+gd0d132fbd-Homebrew
Build type: Release
LuaJIT 2.1.0-beta3
Operating system and version
macOS 13.4.1
Steps to reproduce
- Open nvim with minimal config
- Run
:lua require('neogit').popups.commit.create()
Expected behavior
Open commit popup.
Actual behavior
E5108: Error executing lua [string ":lua"]:1: attempt to index field 'commit' (a nil value)
stack traceback:
[string ":lua"]:1: in main chunk
Minimal config
for name, url in pairs({
neogit = "https://github.com/NeogitOrg/neogit",
plenary = "https://github.com/nvim-lua/plenary.nvim",
telescope = "https://github.com/nvim-telescope/telescope.nvim",
}) do
local install_path = vim.fn.fnamemodify("/tmp/nvim_issue/" .. name, ":p")
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
end
vim.opt.runtimepath:append(install_path)
end
require("neogit").setup()
print("Minimal Config Ready!")Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working