NvChad / NvChad

Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.

Home Page:https://nvchad.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug Report: Exiting Terminal on ESC in LazyGit within NvChad

SouchonTheo opened this issue · comments

Bug Report: Exiting Terminal on ESC in LazyGit within NvChad

Overview

Hello everyone 👋,

I've encountered an issue with the LazyGit plugin in NvChad where pressing Esc to navigate back within a pane unexpectedly exits the terminal session altogether. Despite searching online, I haven't found any solutions or mentions of similar problems.

Steps to Reproduce

  1. Install the LazyGit plugin using the Lua configuration provided below.
  2. Open Neovim and launch LazyGit with the :LazyGit command.
  3. Enter any pane within the LazyGit interface.
  4. Press Esc in an attempt to go back or close the current pane.

Expected Behavior

Pressing Esc should navigate back or close the current pane within the LazyGit interface without affecting the terminal session.

Actual Behavior

Pressing Esc exits the entire terminal session instead of simply navigating back within the LazyGit interface.

Configuration Details

Here is my Lua configuration for installing LazyGit:

return {
    "kdheepak/lazygit.nvim",
    cmd = {
        "LazyGit",
        "LazyGitConfig",
        "LazyGitCurrentFile",
        "LazyGitFilter",
        "LazyGitFilterCurrentFile",
    },
    -- Optional for floating window border decoration
    dependencies = {
        "nvim-lua/plenary.nvim",
    },
}
simplescreenrecorder-2024-03-20_06.36.34.mp4

Unable to reproduce , cant you just use lazygit with our term module?

@siduck I download NvChad from scratch and it doesn't seems to integrate lazyvim

To give more info I started using NvChad this week and I used the repo starter as suggested

it doesn't seems to integrate lazyvim

why will it integrate with another distro?

I'm sorry I'm not sure to understand

If I dl NvChad from scratch and Start it I don't have lazygit preinstalled. The other fact is when I start nvim without a distro or with some other I can press escape to go back in lazygit not in NvChad

esc key in terminal mode is mapped
image

use vim.keymap.del to unmap it